/* Generated by Cython 3.3.0 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "define_macros": [
            [
                "CYTHON_USE_TYPE_SPECS",
                "1"
            ]
        ],
        "name": "Cython.Tempita._tempita",
        "sources": [
            "/build/cython/src/cython/Cython/Tempita/_tempita.py"
        ]
    },
    "module_name": "Cython.Tempita._tempita"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x03090000
    #error Cython requires Python 3.9+.
#elif defined(Py_LIMITED_API) && (Py_LIMITED_API & 0xFFFF0000) > (PY_VERSION_HEX & 0xFFFF0000)
    #error 'Py_LIMITED_API' can only select past Python X.Y versions, not future ones.
#else
#define __PYX_ABI_VERSION "3_3_0"
#define CYTHON_HEX_VERSION 0x030300F0
#define CYTHON_FUTURE_DIVISION 1
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifdef __has_builtin
  #define __Pyx_has_cbuiltin(name) __has_builtin(name)
#else
  #define __Pyx_has_cbuiltin(name) (0)
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
    #if Py_LIMITED_API < 0x03090000
      #error "Cython 3.3 requires the Python Limited API version to be 3.9 or greater."
    #endif
  #endif
  #if defined(GRAALVM_PYTHON) || defined(PYPY_VERSION)
    #ifdef _MSC_VER
      #pragma message ("Py_LIMITED_API is defined on PyPy or GraalPy. This takes precedence over Cython's specialized\
        code for PyPy and GraalPy and is unlikely to work.")
    #else
      #warning "Py_LIMITED_API is defined on PyPy or GraalPy. This takes precedence over Cython's specialized\
        code for PyPy and GraalPy and is unlikely to work."
    #endif
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_VECTORCALL
  #define CYTHON_VECTORCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #ifndef CYTHON_VECTORCALL_TPNEW
    #define CYTHON_VECTORCALL_TPNEW (CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030E0000)
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (__PYX_LIMITED_VERSION_HEX >= 0x030F0000 && PY_VERSION_HEX > 0x030F00A8)
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_OWN_PREP_RERAISE_STAR
    #define CYTHON_USE_OWN_PREP_RERAISE_STAR 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
  #if __PYX_LIMITED_VERSION_HEX < 0x030E0000
  #undef CYTHON_OPAQUE_OBJECTS
  #define CYTHON_OPAQUE_OBJECTS 0
  #elif !defined(CYTHON_OPAQUE_OBJECTS)
  #define CYTHON_OPAQUE_OBJECTS (__PYX_LIMITED_VERSION_HEX >= 0x030F0000)
  #endif
#elif defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 0
  #endif
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #ifndef CYTHON_VECTORCALL
    #define CYTHON_VECTORCALL 1
  #endif
  #if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX < 0x030E0000
    #undef CYTHON_VECTORCALL_TPNEW
    #define CYTHON_VECTORCALL_TPNEW 0
  #elif !defined(CYTHON_VECTORCALL_TPNEW)
    #define CYTHON_VECTORCALL_TPNEW CYTHON_VECTORCALL
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_OWN_PREP_RERAISE_STAR
    #define CYTHON_USE_OWN_PREP_RERAISE_STAR 1
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
  #undef CYTHON_OPAQUE_OBJECTS
  #define CYTHON_OPAQUE_OBJECTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #ifndef CYTHON_VECTORCALL
    #define CYTHON_VECTORCALL 1
  #endif
  #if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX < 0x030E0000
    #undef CYTHON_VECTORCALL_TPNEW
    #define CYTHON_VECTORCALL_TPNEW 0
  #elif !defined(CYTHON_VECTORCALL_TPNEW)
    #define CYTHON_VECTORCALL_TPNEW (PYPY_VERSION_NUM >= 0x07030800 && CYTHON_VECTORCALL)
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #ifndef CYTHON_USE_OWN_PREP_RERAISE_STAR
    #define CYTHON_USE_OWN_PREP_RERAISE_STAR 1
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
  #undef CYTHON_OPAQUE_OBJECTS
  #define CYTHON_OPAQUE_OBJECTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_VECTORCALL
    #define CYTHON_VECTORCALL 1
  #endif
  #if CYTHON_USE_TYPE_SPECS && PY_VERSION_HEX < 0x030E0000
    #undef CYTHON_VECTORCALL_TPNEW
    #define CYTHON_VECTORCALL_TPNEW 0
  #elif !defined(CYTHON_VECTORCALL_TPNEW)
    #define CYTHON_VECTORCALL_TPNEW CYTHON_VECTORCALL
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_OWN_PREP_RERAISE_STAR
    #define CYTHON_USE_OWN_PREP_RERAISE_STAR (PY_VERSION_HEX < 0x030C00B2)
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #ifndef CYTHON_OPAQUE_OBJECTS
    #define CYTHON_OPAQUE_OBJECTS 0
  #endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
    #define CYTHON_UNUSED [[maybe_unused]]
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifdef Py_UNREACHABLE
  #define __Pyx_UNREACHABLE() Py_UNREACHABLE()
#elif __Pyx_has_cbuiltin(__builtin_unreachable)
  #define __Pyx_UNREACHABLE() __builtin_unreachable()
#elif defined(__clang__) || defined(__INTEL_COMPILER) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)))
  #define __Pyx_UNREACHABLE() __builtin_unreachable()
#elif defined(_MSC_VER)
  #define __Pyx_UNREACHABLE() __assume(0)
#else
  #define __Pyx_UNREACHABLE() Py_FatalError("Unreachable C code path reached")
#endif
#ifndef Py_UNREACHABLE
  #define Py_UNREACHABLE() __Pyx_UNREACHABLE()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  0
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
#define __Pyx_PyErr_FetchException(petype, peval, petb) PyErr_Fetch(petype, peval, petb)
#define __Pyx_PyErr_RestoreException(etype, eval, etb) PyErr_Restore(etype, eval, etb)
#else
#define __Pyx_PyErr_FetchException(petype, peval, petb) *(petype)=NULL; *(peval)=PyErr_GetRaisedException(); *(petb)=NULL
#define __Pyx_PyErr_RestoreException(etype, eval, etb) PyErr_SetRaisedException(eval)
#endif

/* CInitCode */
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static unsigned long __Pyx_Runtime_TPFLAGS_SEQUENCE;
static unsigned long __Pyx_Runtime_TPFLAGS_MAPPING;
#else
#define __Pyx_Runtime_TPFLAGS_SEQUENCE Py_TPFLAGS_SEQUENCE
#define __Pyx_Runtime_TPFLAGS_MAPPING Py_TPFLAGS_MAPPING
#endif
static int __Pyx_init_tpflags_variables(void);
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE (CYTHON_COMPILING_IN_LIMITED_API ? 0 : 1 << 5)
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING (CYTHON_COMPILING_IN_LIMITED_API ? 0 : 1 << 6)
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if !defined(METH_FASTCALL) || CYTHON_COMPILING_IN_PYPY
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_VECTORCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#define __Pyx_PyCFunction_CheckExact(func) PyCFunction_CheckExact(func)
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
#endif
#if CYTHON_COMPILING_IN_PYPY
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno))
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_OPAQUE_OBJECTS && CYTHON_COMPILING_IN_LIMITED_API
    #define __PYX_SHARED_SIZEOF(T) -((int)sizeof(T))
    #define __PYX_SHARED_RELATIVE_OFFSET Py_RELATIVE_OFFSET
    #define CYTHON_OPAQUE_SHARED_TYPES 1
#else
    #define __PYX_SHARED_SIZEOF(T) sizeof(T)
    #define __PYX_SHARED_RELATIVE_OFFSET 0
    #define CYTHON_OPAQUE_SHARED_TYPES 0
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL && PyErr_Occurred()) {
        PyErr_WriteUnraisable(NULL);
    }
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_KIND_04(u)      __Pyx_PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
  static CYTHON_INLINE int __Pyx_PyUnicode_KIND_04(PyObject *o) {
      return __Pyx_PyUnicode_KIND(o) - (int) !!PyUnicode_IS_ASCII(o);
  }
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        Py_IS_TYPE(obj, &PySet_Type)
#endif
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !(CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE)
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
#else
  #define __Pyx_PyList_GetItemRef(o, i) (likely(__Pyx_is_valid_index(i, PyList_GET_SIZE(o))) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyList_GET_ITEM_REF(o, i, unsafe_shared)  ((void)(unsafe_shared),\
      __Pyx_PyList_GetItemRef(o, i))
#elif CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GET_ITEM_REF(o, i, unsafe_shared) (\
      __Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
      __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
  #else
  #define __Pyx_PyList_GET_ITEM_REF(o, i, unsafe_shared) (\
      __Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
      __Pyx_XNewRef(PyList_GetItem(o, i)) : __Pyx_PyList_GetItemRef(o, i))
  #endif
#elif CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GET_ITEM_REF(o, i, unsafe_shared)  ((void)(unsafe_shared),\
      __Pyx_NewRef(PyList_GET_ITEM(o, i)))
#else
  #define __Pyx_PyList_GET_ITEM_REF(o, i, unsafe_shared)  ((void)(unsafe_shared),\
      __Pyx_XNewRef(PyList_GetItem(o, i)))
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyDict_GET_SIZE(o) PyDict_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyDict_GET_SIZE(o) PyDict_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
static int __Pyx_init_tpflags_bitcount(unsigned long flag) {
    int count = 0;
    while (flag) {
        count += (int) (flag & 1);
        flag >>= 1;
    }
    return count;
}
static int __Pyx_init_tpflags_variables(void) {
    if (__Pyx_Runtime_TPFLAGS_SEQUENCE != 0 && __Pyx_Runtime_TPFLAGS_MAPPING != 0) {
        return 0;
    }
    PyObject *collections_abc = PyImport_ImportModule("collections.abc");
    if (!collections_abc) return -1;
    int result = 0;
    PyObject *sequence = NULL, *mapping = NULL;
#if __PYX_LIMITED_VERSION_HEX >= 0x030D0000
    if (PyObject_GetOptionalAttrString(collections_abc, "Sequence", &sequence) != 1) goto fail;
    if (PyObject_GetOptionalAttrString(collections_abc, "Mapping", &mapping) != 1) goto fail;
#else
    sequence = PyObject_GetAttrString(collections_abc, "Sequence");
    if (!sequence) goto fail_attr_lookup;
    mapping = PyObject_GetAttrString(collections_abc, "Mapping");
    if (!mapping) goto fail_attr_lookup;
#endif
    if (!PyType_Check(sequence) || !PyType_Check(mapping)) goto fail;
    {
        unsigned long sequence_flags = PyType_GetFlags((PyTypeObject*)sequence);
        unsigned long mapping_flags = PyType_GetFlags((PyTypeObject*)mapping);
        unsigned long mutual_flags = sequence_flags & mapping_flags;
        sequence_flags = sequence_flags ^ mutual_flags;
        mapping_flags = mapping_flags ^ mutual_flags;
        if (__Pyx_Runtime_TPFLAGS_SEQUENCE == 0 && __Pyx_init_tpflags_bitcount(sequence_flags) == 1) {
            __Pyx_Runtime_TPFLAGS_SEQUENCE = sequence_flags;
        }
        if (__Pyx_Runtime_TPFLAGS_MAPPING == 0 && __Pyx_init_tpflags_bitcount(mapping_flags) == 1) {
            __Pyx_Runtime_TPFLAGS_MAPPING = mapping_flags;
        }
    }
    cleanup:
    Py_XDECREF(mapping);
    Py_XDECREF(sequence);
    Py_DECREF(collections_abc);
    return result;
#if __PYX_LIMITED_VERSION_HEX < 0x030D0000
    fail_attr_lookup:
    if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    }
#endif
    fail:
    result = PyErr_Occurred() ? -1 : 0;
    goto cleanup;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
static int __Pyx_init_tpflags_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__Cython__Tempita___tempita
#define __PYX_HAVE_API__Cython__Tempita___tempita
/* Early includes */
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifdef CYTHON_FREETHREADING_COMPATIBLE
#if CYTHON_FREETHREADING_COMPATIBLE
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x);
#define __Pyx_PyObject_RichCompareBool(a,b,cmp)  __Pyx_PyObject_IsTrueAndDecref(PyObject_RichCompare((a),(b),(cmp)))
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#define __Pyx_PyFloat_IsNonZero(x) (PyFloat_AS_DOUBLE(x) != 0.0)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_IsNonZero(x) PyObject_IsTrue(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_SignBits(x)  ((int) (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK))
  #define __Pyx_PyLong_Sign(x)  (1 - __Pyx_PyLong_SignBits(x))
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_SignBits(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_SignBits(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_SignBits(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        (((Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  (((Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  static CYTHON_INLINE Py_ssize_t __Pyx_PyLong_CompareSignAndSize(PyObject *a, PyObject *b) {
      uintptr_t tag_a = ((PyLongObject*)a)->long_value.lv_tag;
      uintptr_t tag_b = ((PyLongObject*)b)->long_value.lv_tag;
      if (tag_a == tag_b) return 0;
      int sign_a = (int) (tag_a & _PyLong_SIGN_MASK);
      int sign_b = (int) (tag_b & _PyLong_SIGN_MASK);
      if (sign_a > sign_b) return -1;
      if (sign_a < sign_b) return 1;
      Py_ssize_t size_a = (Py_ssize_t) (tag_a >> _PyLong_NON_SIZE_BITS);
      Py_ssize_t size_b = (Py_ssize_t) (tag_b >> _PyLong_NON_SIZE_BITS);
      return (1 - sign_a) * (size_a - size_b);
  }
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_Sign(x)  ((int) ((Py_SIZE(x) == 0) ? 0 : (Py_SIZE(x) < 0) ? -1 : 1))
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  #define __Pyx_PyLong_CompareSignAndSize(a, b)  (Py_SIZE(a) - Py_SIZE(b))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
  #define __Pyx_PyLong_IsNonZero(x)  (!__Pyx_PyLong_IsZero(x))
#else
  #define __Pyx_PyLong_IsNonZero(x)  PyObject_IsTrue(x)
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static const char * const __pyx_cfilenm = __FILE__;

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "Cython/Tempita/_tempita.py",
};
/* #### Code section: utility_code_proto_before_types ### */
/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by ExceptionGetProperty) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* #### Code section: numeric_typedefs ### */
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_defaults;
struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature;

/* "Cython/Tempita/_tempita.py":154
 *             self.default_inherit = default_inherit
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
*/
struct __pyx_defaults {
  PyObject_HEAD
  PyObject *arg0;
};


/* "Cython/Tempita/_tempita.py":935
 * 
 * 
 * def parse_signature(sig_text: str, name, pos) -> tuple:             # <<<<<<<<<<<<<<
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)
 *     sig_args = []
*/
struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature {
  PyObject_HEAD
  PyObject *__pyx_v_tokens;
};

/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_XINCREF(r)  do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* FastTypeChecks.proto (used by GivenExceptionMatches) */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
#define __Pyx_PyAnySet_Check(obj)  __Pyx_TypeCheck2(obj, &PySet_Type, &PyFrozenSet_Type)
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyAnySet_Check(obj)  PyAnySet_Check(obj)
#endif

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by GivenExceptionMatches) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* GivenExceptionMatches.proto (used by PyErrExceptionMatches) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyObjectGetAttrStr.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* CopyObjectArray.proto (used by TupleOrListFromArrayImpl) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length);
#endif

/* TupleOrListFromArrayImpl.proto (used by TupleFromArray) */
#if PY_VERSION_HEX >= 0x030F0000 && !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_PyTuple_FromArray(src, n) PyTuple_FromArray(src, ((n)<0) ? 0 : (n))
#else
CYTHON_UNUSED static PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* TupleFromArray.proto (used by fastcall) */


/* IncludeStringH.proto (used by PyObjectCompare) */
#include <string.h>

/* PyObjectCompare.proto (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_str_str(PyObject *op1, PyObject *op2, int pyop);

/* UnicodeEquals.proto (used by fastcall) */
#define __Pyx_PyUnicode_Equals(s1, s2)  __Pyx_PyObject_CompareBoolEq_str_str(s1, s2, Py_EQ)

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_VECTORCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#if CYTHON_VECTORCALL_TPNEW
    #if !CYTHON_VECTORCALL
        #error Enabling CYTHON_VECTORCALL_TPNEW without CYTHON_VECTORCALL is not supported
    #endif
    #define __Pyx_ArgRef_FASTCALL_TPNEW __Pyx_ArgRef_FASTCALL
    #define __Pyx_NumKwargs_FASTCALL_TPNEW __Pyx_NumKwargs_FASTCALL
    #define __Pyx_KwValues_FASTCALL_TPNEW __Pyx_KwValues_FASTCALL
    #define __Pyx_GetKwValue_FASTCALL_TPNEW __Pyx_GetKwValue_FASTCALL
    #define __Pyx_KwargsAsDict_FASTCALL_TPNEW __Pyx_KwargsAsDict_FASTCALL
#else
    #define __Pyx_ArgRef_FASTCALL_TPNEW __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL_TPNEW __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL_TPNEW __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL_TPNEW __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL_TPNEW __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_VECTORCALL
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL __Pyx_ArgsSlice_VARARGS
#endif

/* HasAttr.proto */
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_HasAttr(o, n)  PyObject_HasAttrWithError(o, n)
#else
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
#endif

/* PyObject_Unicode.proto */
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))

/* PyObjectCall.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargsf, PyObject *kwargs);

/* ParseKeywordsImpl */
static int(*__Pyx_ParseKeywordsTuple)(PyObject *kwds, PyObject * const *kwvalues, PyObject ** const argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, Py_ssize_t num_kwargs, const char* function_name, int ignore_unknown_kwargs); /*proto*/
static int(*__Pyx_ParseKeywordDictToDict)(PyObject *kwds, PyObject ** const argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name); /*proto*/
static int(*__Pyx_ParseKeywordDict)(PyObject *kwds, PyObject ** const argnames[], PyObject *values[], Py_ssize_t num_pos_args, Py_ssize_t num_kwargs, const char* function_name, int ignore_unknown_kwargs); /*proto*/

/* ParseKeywords.proto */
static CYTHON_INLINE int __Pyx_ParseKeywords(
    PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[],
    PyObject *kwds2, PyObject *values[],
    Py_ssize_t num_pos_args, Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* RaiseArgTupleInvalid */
static void(*__Pyx_RaiseArgtupleInvalid)(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/

/* PyException_Check.proto */
#define __Pyx_PyExc_Exception_Check(obj)  __Pyx_TypeCheck(obj, PyExc_Exception)

/* PyObjectFastCallMethod.proto */
#if CYTHON_VECTORCALL
#define __Pyx_PyObject_FastCallMethod(name, args, nargsf) PyObject_VectorcallMethod(name, args, nargsf, NULL)
#else
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf);
#endif

/* PyObjectDelAttr.proto (used by PyObjectSetAttrStr) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
#define __Pyx_PyObject_DelAttr(o, n) PyObject_SetAttr(o, n, NULL)
#else
#define __Pyx_PyObject_DelAttr(o, n) PyObject_DelAttr(o, n)
#endif

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   __Pyx_PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* PyUnicode_Unicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj);

/* PyFrozenDict.proto (used by GetItemInt) */
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_PyFrozenDict_TypePtr  ((PyTypeObject*) __pyx_mstate_global->__Pyx_PyFrozenDictType)
#define __Pyx_PyFrozenDict_New(it)  __Pyx__PyFrozenDict_New(__pyx_mstate_global->__Pyx_PyFrozenDictType, it)
static CYTHON_INLINE PyObject* __Pyx__PyFrozenDict_New(PyObject* frozendict_type, PyObject* it);
#define __Pyx_PyFrozenDict_NewEmpty()  __Pyx_PyFrozenDict_New(NULL)
#define __Pyx_PyFrozenDict_Check(obj)  PyObject_TypeCheck((obj), __Pyx_PyFrozenDict_TypePtr)
#define __Pyx_PyFrozenDict_CheckExact(obj)  Py_IS_TYPE((obj), __Pyx_PyFrozenDict_TypePtr)
#define __Pyx_PyAnyDict_Check(obj)   __Pyx__PyAnyDict_Check(obj, __Pyx_PyFrozenDict_TypePtr)
static CYTHON_INLINE int __Pyx__PyAnyDict_Check(PyObject *obj, PyTypeObject* frozendict_type) {
    return PyObject_TypeCheck(obj, &PyDict_Type) || PyObject_TypeCheck(obj, frozendict_type);
}
#define __Pyx_PyAnyDict_CheckExact(obj)  __Pyx__PyAnyDict_CheckExact(obj, __Pyx_PyFrozenDict_TypePtr)
static CYTHON_INLINE int __Pyx__PyAnyDict_CheckExact(PyObject *obj, PyTypeObject* frozendict_type) {
    return Py_IS_TYPE(obj, &PyDict_Type) || Py_IS_TYPE(obj, frozendict_type);
}
#elif PY_VERSION_HEX >= 0x030f00a6 ||\
    (defined(PyFrozenDict_Check) && defined(PyAnyDict_Check) && defined(PyFrozenDict_New))
#define __Pyx_PyFrozenDict_TypePtr  (&PyFrozenDict_Type)
#define __Pyx_PyFrozenDict_New(it)  PyFrozenDict_New(it)
#define __Pyx_PyFrozenDict_NewEmpty()  PyFrozenDict_New(NULL)
#define __Pyx_PyFrozenDict_Check(obj)  PyFrozenDict_Check(obj)
#define __Pyx_PyFrozenDict_CheckExact(obj)  PyFrozenDict_CheckExact(obj)
#define __Pyx_PyAnyDict_Check(obj)  PyAnyDict_Check(obj)
#define __Pyx_PyAnyDict_CheckExact(obj)  PyAnyDict_CheckExact(obj)
#else
#define __Pyx_PyFrozenDict_TypePtr  (&PyDict_Type)
static CYTHON_INLINE PyObject* __Pyx_PyFrozenDict_New(PyObject* it) {
    if (!it) {
        return PyDict_New();
    } else if (PyDict_Check(it)) {
        return PyDict_Copy(it);
    } else {
        PyObject *dict = PyDict_New();
        if (!dict) return NULL;
        PyObject *result = PyNumber_InPlaceOr(dict, it);
        Py_DECREF(dict);
        return result;
    }
}
#define __Pyx_PyFrozenDict_NewEmpty()  PyDict_New()
#define __Pyx_PyFrozenDict_Check(obj)  PyDict_Check(obj)
#define __Pyx_PyFrozenDict_CheckExact(obj)  PyDict_CheckExact(obj)
#define __Pyx_PyAnyDict_Check(obj)  PyDict_Check(obj)
#define __Pyx_PyAnyDict_CheckExact(obj)  PyDict_CheckExact(obj)
#endif

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    __Pyx_GetItemInt_Generic(o, to_py_func(i)))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int wraparound, int boundscheck, int unsafe_shared);

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* JoinPyUnicode */
static PyObject*(*__Pyx_PyUnicode_Join)(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength, int kind); /*proto*/

/* JoinPyUnicode.proto */
#define __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH\
    (!CYTHON_COMPILING_IN_GRAAL && !CYTHON_COMPILING_IN_PYPY && !CYTHON_COMPILING_IN_LIMITED_API)

/* UnicodeConcatInPlace.proto */
# if CYTHON_COMPILING_IN_CPYTHON
    #if CYTHON_REFNANNY
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared, __pyx_refnanny)
    #else
        #define __Pyx_PyUnicode_ConcatInPlace(left, right, unsafe_shared) __Pyx_PyUnicode_ConcatInPlaceImpl(&left, right, unsafe_shared)
    #endif
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_DefinitelyUnique)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_OwnStrongReference)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_FunctionArgument)
    #define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right) __Pyx_PyUnicode_ConcatInPlace(left, right, __Pyx_ReferenceSharing_SharedReference)
    static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    );
#else
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace __Pyx_PyUnicode_Concat
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace __Pyx_PyUnicode_Concat
#endif
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_DefinitelyUniqueInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_FunctionArgumentInPlace(left, right))
#define __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlaceSafe(left, right)\
    ((unlikely((left) == Py_None) || unlikely((right) == Py_None)) ?\
    PyNumber_InPlaceAdd(left, right) : __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_SharedReferenceInPlace(left, right))

/* IgnoreException.proto (used by GetModuleGlobalName) */
static CYTHON_INLINE int __Pyx_IgnoreGivenException(PyObject *given_exception, PyObject *ignorable_exception);
#define __Pyx_IgnoreException(ignorable_exception) __Pyx_IgnoreGivenException(NULL, ignorable_exception)

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyObjectVectorcallKwds.proto (used by PyObjectVectorcallMethodKwds) */
#if CYTHON_VECTORCALL
#define __Pyx_Object_VectorcallKwds PyObject_Vectorcall
CYTHON_UNUSED static int __Pyx_CheckVectorcallKwarg(PyObject *kwnames, Py_ssize_t i);
#else
#define __Pyx_Object_VectorcallKwds __Pyx_PyObject_FastCallDict
CYTHON_UNUSED static PyObject *__Pyx_MakeKwargDict(PyObject **keys, PyObject **values, Py_ssize_t n);
CYTHON_UNUSED static int __Pyx_CheckVectorcallKwarg(PyObject **kwnames, Py_ssize_t i);
#endif

/* PyObjectVectorcallMethodKwds.proto */
#if CYTHON_VECTORCALL
#define __Pyx_Object_VectorcallMethodKwds PyObject_VectorcallMethod
#else
static PyObject *__Pyx_Object_VectorcallMethodKwds(PyObject *name, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#endif

/* ImportImpl */
static PyObject *(*__Pyx__Import)(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level); /*proto*/

/* Import.proto */
static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level);

/* PyDeprecationWarning_Check.proto */
#define __Pyx_PyExc_DeprecationWarning_Check(obj)  __Pyx_TypeCheck(obj, PyExc_DeprecationWarning)

/* DictGetItem.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(__Pyx_PyAnyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* GetTopmostException.proto (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* FormatTypeName.proto (used by RaiseErrorWithObjectType) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030d0000
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%N"
#define __Pyx_PyType_GetFullyQualifiedName(tp) Py_NewRef((PyObject*)tp)
#define __Pyx_DECREF_TypeName(obj) Py_DECREF(obj)
#elif CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* RaiseErrorWithObjectType.proto (used by SliceObject) */
#define __Pyx_RaiseTypeErrorWithObjectType(message, obj)  __Pyx_RaiseErrorWithObjectType(PyExc_TypeError, message, obj)
#define __Pyx_RaiseErrorWithObjectType(exc_type, message, obj)  __Pyx_RaiseErrorWithType(exc_type, message, Py_TYPE(obj))
CYTHON_UNUSED
static void __Pyx_RaiseErrorWithType(PyObject* exc_type, const char* message, PyTypeObject *type_obj);

/* SliceObject.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
        PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

/* PyValueError_Check.proto */
#define __Pyx_PyExc_ValueError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_ValueError)

/* PyObjectLookupSpecial.proto */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 0)
#define __Pyx_PyObject_LookupSpecial(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 1)
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error);
#else
#define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n)
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* RaiseUnboundLocalError.proto */
static void __Pyx_RaiseUnboundLocalError(const char *varname);

/* PyNumber_Hex.proto */
#define __Pyx_PyNumber_Hex(obj) PyNumber_ToBase((obj), 16)

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* PyUnicode_Substring.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Substring(
            PyObject* text, Py_ssize_t start, Py_ssize_t stop);

/* PyTypeError_Check.proto */
#define __Pyx_PyExc_TypeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_TypeError)

/* RaiseException */
static void(*__Pyx_Raise)(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* PyDictContains.proto */
static CYTHON_INLINE int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict, int eq) {
    int result = PyDict_Contains(dict, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* py_dict_pop.proto */
static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value);

/* CallCFunction.proto (used by CallUnboundCMethod2) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* UnpackUnboundCMethod_decl.proto (used by UnpackUnboundCMethod) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
    PyCFunction func;
    PyObject *method;
    int flag;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
} __Pyx_CachedCFunction;

/* UnpackUnboundCMethod_impl */
static int(*__Pyx_TryUnpackUnboundCMethod)(__Pyx_CachedCFunction* target); /*proto*/

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod2) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod2.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* PyObjectCall2Args.proto (used by CallUnboundCMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* CallUnboundCMethod1.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#else
#define __Pyx_CallUnboundCMethod1(cfunc, self, arg)  __Pyx__CallUnboundCMethod1(cfunc, self, arg)
#endif

/* PyObjectCallMethod0.proto (used by dict_iter_common) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNoneIterError.proto (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto (used by dict_iter_common) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
    PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple);
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter_common.proto (used by dict_iter) */
static PyObject *__Pyx_dict_call_to_get_iterable(PyObject* iterable, PyObject* method_name);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);

/* ListAppend.proto (used by append) */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x);
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* PyObjectCallMethod1.proto (used by append) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* append.proto */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x);

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_object_str(PyObject *op1, PyObject *op2, int pyop);

/* AssertionsEnabled.proto */
#if CYTHON_COMPILING_IN_LIMITED_API  ||  PY_VERSION_HEX >= 0x030C0000
  static int __pyx_assertions_enabled_flag;
  #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag)
  #if __clang__ || __GNUC__
  __attribute__((no_sanitize("thread")))
  #endif
  static int __Pyx_init_assertions_enabled(void) {
    PyObject *builtins, *debug, *debug_str;
    int flag;
    builtins = PyEval_GetBuiltins();
    if (!builtins) goto bad;
    debug_str = PyUnicode_FromStringAndSize("__debug__", 9);
    if (!debug_str) goto bad;
    debug = PyObject_GetItem(builtins, debug_str);
    Py_DECREF(debug_str);
    if (!debug) goto bad;
    flag = PyObject_IsTrue(debug);
    Py_DECREF(debug);
    if (flag == -1) goto bad;
    __pyx_assertions_enabled_flag = flag;
    return 0;
  bad:
    __pyx_assertions_enabled_flag = 1;
    return -1;
  }
#else
  #define __Pyx_init_assertions_enabled()  (0)
  #define __pyx_assertions_enabled()  (!Py_OptimizeFlag)
#endif

/* PyAssertionError_Check.proto */
#define __Pyx_PyExc_AssertionError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AssertionError)

/* PySyntaxError_Check.proto */
#define __Pyx_PyExc_SyntaxError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_SyntaxError)

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* ExceptionGetProperty.proto */
static CYTHON_INLINE PyObject* __Pyx_PyException_get_args(PyObject *exception);

/* ExceptionSetProperty.proto */
static CYTHON_INLINE int __Pyx_PyException_set_args(PyObject *exception, PyObject *value);

/* PyExec.proto */
static PyObject* __Pyx_PyExec3(PyObject*, PyObject*, PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyExec2(PyObject*, PyObject*);

/* PyUnicodeDecodeError_Check.proto */
#define __Pyx_PyExc_UnicodeDecodeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_UnicodeDecodeError)

/* PyUnicodeEncodeError_Check.proto */
#define __Pyx_PyExc_UnicodeEncodeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_UnicodeEncodeError)

/* dict_getitem_default.proto */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value);

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* PyKeyError_Check.proto */
#define __Pyx_PyExc_KeyError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_KeyError)

/* PyAttributeError_Check.proto */
#define __Pyx_PyExc_AttributeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AttributeError)

/* PyObjectCallNoArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* ListCompAppendAndDecref.proto */
static CYTHON_INLINE int __Pyx_ListComp_AppendAndDecref(PyObject* list, PyObject* x);

/* pop_index.proto */
static PyObject* __Pyx__PyObject_PopNewIndex(PyObject* L, PyObject* py_ix);
static PyObject* __Pyx__PyObject_PopIndex(PyObject* L, PyObject* py_ix);
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t ix);
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    (likely(PyList_CheckExact(L) && __Pyx_fits_Py_ssize_t(ix, type, is_signed))) ?\
        __Pyx__PyList_PopIndex(L, py_ix, ix) : (\
        (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
            __Pyx__PyObject_PopIndex(L, py_ix)))
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    __Pyx_fits_Py_ssize_t(ix, type, is_signed) ?\
        __Pyx__PyList_PopIndex(L, py_ix, ix) : (\
        (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
            __Pyx__PyObject_PopIndex(L, py_ix)))
#else
#define __Pyx_PyList_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)\
    __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func)
#define __Pyx_PyObject_PopIndex(L, py_ix, ix, is_signed, type, to_py_func) (\
    (unlikely((py_ix) == Py_None)) ? __Pyx__PyObject_PopNewIndex(L, to_py_func(ix)) :\
        __Pyx__PyObject_PopIndex(L, py_ix))
#endif

/* RaiseErrorWithObjectType1.proto (used by RaiseUnexpectedTypeError) */
#define __Pyx_RaiseTypeErrorWithObjectType1(message, arg, obj) __Pyx_RaiseErrorWithObjectType1(PyExc_TypeError, message, arg, obj)
#define __Pyx_RaiseErrorWithObjectType1(exc_type, message, arg, obj) __Pyx_RaiseErrorWithType1(exc_type, message, arg, Py_TYPE(obj))
CYTHON_UNUSED
static void __Pyx_RaiseErrorWithType1(PyObject* exc_type, const char* message, const char *arg, PyTypeObject *type_obj);

/* RaiseUnexpectedTypeError.proto */
CYTHON_UNUSED
static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj);

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* ArgTypeTestError */
static void(*__Pyx_ArgTypeError)(PyObject *obj, PyTypeObject *type, const char *name, int exact); /*proto*/

/* ArgTypeTest.proto */
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, const char *name, int exact);

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_object_int(PyObject *op1, PyObject *op2, int pyop);

/* SetItemInt.proto */
#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, wraparound, boundscheck, unsafe_shared) :\
    __Pyx_SetItemInt_Generic(o, to_py_func(i), v))
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v);
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v,
                                               int wraparound, int boundscheck, int unsafe_shared);

/* pybuiltin_invalid */
static void(*__Pyx_PyBuiltin_Invalid)(PyObject *obj, const char *builtin_type_name, const char *argname); /*proto*/

/* pyint_simplify.proto */
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none);

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolGt_int_int(PyObject *op1, PyObject *op2, int pyop);

/* RaiseErrorWithObjectTypes.proto (used by PyNumberBinop) */
#define __Pyx_RaiseErrorWithObjectTypes1(exc_type, message, arg, obj1, obj2) __Pyx_RaiseErrorWithTypes1(exc_type, message, arg, Py_TYPE(obj1), Py_TYPE(obj2))
#define __Pyx_RaiseTypeErrorWithObjectTypes(message, obj1, obj2) __Pyx_RaiseTypeErrorWithTypes(message, Py_TYPE(obj1), Py_TYPE(obj2))
#define __Pyx_RaiseTypeErrorWithTypes(message, type_obj1, type_obj2) __Pyx_RaiseErrorWithTypes1(PyExc_TypeError, "%.1s" message, "", type_obj1, type_obj2)
CYTHON_UNUSED
static void __Pyx_RaiseErrorWithTypes1(PyObject* exc_type, const char *message, const char *arg, PyTypeObject *type_obj1, PyTypeObject *type_obj2);

/* PyNumberBinop.proto */
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_PyNumber_Subtract_object_int(op1, op2)  PyNumber_Subtract(op1, op2)
#define __Pyx_PyNumber_InPlaceSubtract_object_int(op1, op2)  PyNumber_InPlaceSubtract(op1, op2)
#else
#define __Pyx_PyNumber_Subtract_object_int(op1, op2)  __Pyx__PyNumber_Subtract_object_int(op1, op2, 0)
#define __Pyx_PyNumber_InPlaceSubtract_object_int(op1, op2)  __Pyx__PyNumber_Subtract_object_int(op1, op2, 1)
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Subtract_object_int(PyObject *op1, PyObject *op2, int inplace);
#endif

/* PyNumberBinop.proto */
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_PyNumber_Subtract_object_object(op1, op2)  PyNumber_Subtract(op1, op2)
#define __Pyx_PyNumber_InPlaceSubtract_object_object(op1, op2)  PyNumber_InPlaceSubtract(op1, op2)
#else
#define __Pyx_PyNumber_Subtract_object_object(op1, op2)  __Pyx__PyNumber_Subtract_object_object(op1, op2, 0)
#define __Pyx_PyNumber_InPlaceSubtract_object_object(op1, op2)  __Pyx__PyNumber_Subtract_object_object(op1, op2, 1)
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Subtract_object_object(PyObject *op1, PyObject *op2, int inplace);
#endif

/* PyNumberBinop.proto */
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_PyNumber_Add_object_object(op1, op2)  PyNumber_Add(op1, op2)
#define __Pyx_PyNumber_InPlaceAdd_object_object(op1, op2)  PyNumber_InPlaceAdd(op1, op2)
#else
#define __Pyx_PyNumber_Add_object_object(op1, op2)  __Pyx__PyNumber_Add_object_object(op1, op2, 0)
#define __Pyx_PyNumber_InPlaceAdd_object_object(op1, op2)  __Pyx__PyNumber_Add_object_object(op1, op2, 1)
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Add_object_object(PyObject *op1, PyObject *op2, int inplace);
#endif

/* PyNumberBinop.proto */
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_PyNumber_Add_object_int(op1, op2)  PyNumber_Add(op1, op2)
#define __Pyx_PyNumber_InPlaceAdd_object_int(op1, op2)  PyNumber_InPlaceAdd(op1, op2)
#else
#define __Pyx_PyNumber_Add_object_int(op1, op2)  __Pyx__PyNumber_Add_object_int(op1, op2, 0)
#define __Pyx_PyNumber_InPlaceAdd_object_int(op1, op2)  __Pyx__PyNumber_Add_object_int(op1, op2, 1)
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Add_object_int(PyObject *op1, PyObject *op2, int inplace);
#endif

/* TupleOrListFromArrayImpl.proto (used by ListFromArray) */
CYTHON_UNUSED static PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);

/* ListFromArray.proto (used by SliceTupleAndList) */


/* SliceTupleAndList.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(PyObject* src, Py_ssize_t start, Py_ssize_t stop);
#else
#define __Pyx_PyList_GetSlice(seq, start, stop)   PySequence_GetSlice(seq, start, stop)
#define __Pyx_PyTuple_GetSlice(seq, start, stop)  PySequence_GetSlice(seq, start, stop)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* unicode_tailmatch.proto */
static int __Pyx_PyUnicode_Tailmatch(
    PyObject* s, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction);

/* PyUCS4InUnicode.proto */
static CYTHON_INLINE int __Pyx_UnicodeContainsUCS4(Py_UCS4 character, PyObject* text, int eq);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x);
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* IterNextPlain.proto (used by IterNext) */
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator);
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void);
#endif

/* IterNext.proto */
#define __Pyx_PyIter_Next(obj) __Pyx_PyIter_Next2(obj, NULL)
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject *, PyObject *);

/* RaiseClosureNameError.proto */
static void __Pyx_RaiseClosureNameError(const char *varname);

/* PyStopIteration_Check.proto */
#define __Pyx_PyExc_StopIteration_Check(obj)  __Pyx_TypeCheck(obj, PyExc_StopIteration)

/* VerifyCachedType.proto (used by CythonFunctionFromSharedModule) */
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize);

/* CythonFunction */
static PyObject *(*__Pyx_CyFunction_New)(PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject* code); /*proto*/
static PyTypeObject *(*__Pyx_Get_CyFunction_Type)(void); /*proto*/

/* CythonFunctionPerModule.proto (used by CythonFunctionFromSharedModule) */
#define __Pyx_CyFunction_USED
#if CYTHON_OPAQUE_SHARED_TYPES
#define __Pyx_as_CyFunctionObject(o) ((__pyx_CyFunctionObject *)PyObject_GetTypeData((o), __pyx_mstate_global->__pyx_CyFunctionType))
#else
#define __Pyx_as_CyFunctionObject(o) ((__pyx_CyFunctionObject *)o)
#endif
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    ((__Pyx_as_CyFunctionObject(f))->func_closure)
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx__CyFunction_GetClassObj(f)\
      ((f)->func_classobj)
#else
  #define __Pyx__CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_GetClassObj(f)\
    __Pyx__CyFunction_GetClassObj(__Pyx_as_CyFunctionObject(f))
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj(__Pyx_as_CyFunctionObject(f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)((__Pyx_as_CyFunctionObject(f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    (__Pyx_as_CyFunctionObject(f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_OPAQUE_OBJECTS
    PyObject_HEAD
#endif
    PyMethodDef *func_methoddef;
    PyObject *func_module;
#else
    PyCMethodObject func;
#endif
#if (CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY) && CYTHON_VECTORCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
#if __PYX_LIMITED_VERSION_HEX < 0x030B0000
    PyObject *func_is_coroutine;
#endif
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  Py_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
#define __Pyx_CyFunction_func_vectorcall(f) ((f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_int_object(PyObject *op1, PyObject *op2, int pyop);

/* UnicodeEqualsUCS4.proto (used by UnicodeEquals_uchar) */
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
#define __Pyx_PyObject_Equals_uchar(s1, s2, ch2, equals, s1_is_str) (\
    ((s1) == (s2)) ? ((equals) == Py_EQ) :\
    ((s1) == Py_None) ? ((equals) == Py_NE) :\
    __Pyx_PyObject_RichCompareBool(s1, s2, equals)\
    )
#else
#define __Pyx_PyObject_Equals_uchar(s1, s2, ch2, equals, s1_is_str) (\
    ((s1) == (s2)) ? ((equals) == Py_EQ) :\
    ((s1) == Py_None) ? ((equals) == Py_NE) :\
    (likely((s1_is_str) || PyUnicode_CheckExact(s1)) ?\
        __Pyx__PyUnicode_EqualsUCS4(s1, ch2, equals) :\
        __Pyx_PyObject_RichCompareBool(s1, s2, equals)\
    ))
static CYTHON_INLINE int __Pyx__PyUnicode_EqualsUCS4(PyObject* s1, Py_UCS4 ch2, int equals);
#endif

/* UnicodeEquals_uchar.proto */
#define __Pyx_PyObject_Equals_str_ch42(s1, s2, equals)  __Pyx_PyObject_Equals_uchar(s1, s2, 42, equals, 1)

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolNe_int_object(PyObject *op1, PyObject *op2, int pyop);

/* UnicodeEquals_uchar.proto */
#define __Pyx_PyObject_Equals_str_ch44(s1, s2, equals)  __Pyx_PyObject_Equals_uchar(s1, s2, 44, equals, 1)

/* UnicodeEquals_uchar.proto */
#define __Pyx_PyObject_Equals_str_ch61(s1, s2, equals)  __Pyx_PyObject_Equals_uchar(s1, s2, 61, equals, 1)

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_str_object(PyObject *op1, PyObject *op2, int pyop);

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
#endif

/* UnicodeEquals_uchar.proto */
#define __Pyx_PyObject_Equals_str_ch40(s1, s2, equals)  __Pyx_PyObject_Equals_uchar(s1, s2, 40, equals, 1)

/* UnicodeEquals_uchar.proto */
#define __Pyx_PyObject_Equals_str_ch91(s1, s2, equals)  __Pyx_PyObject_Equals_uchar(s1, s2, 91, equals, 1)

/* UnicodeEquals_uchar.proto */
#define __Pyx_PyObject_Equals_str_ch123(s1, s2, equals)  __Pyx_PyObject_Equals_uchar(s1, s2, 123, equals, 1)

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_object_object(PyObject *op1, PyObject *op2, int pyop);

/* ListExtend.proto */
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030d0000) && !defined(PyList_Extend)
static CYTHON_INLINE int __Pyx_PyList_Extend(PyObject* L, PyObject* v);
#else
#define __Pyx_PyList_Extend(L, v)  PyList_Extend(L, v)
#endif

/* PyObjectCompare.proto */
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolLt_object_int(PyObject *op1, PyObject *op2, int pyop);

/* UnicodeEquals_uchar.proto */
#define __Pyx_PyObject_Equals_obj_ch45(s1, s2, equals)  __Pyx_PyObject_Equals_uchar(s1, s2, 45, equals, 0)

/* AllocateExtensionType.proto */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final);

/* CallSlotAsVectorcall.proto */
#if CYTHON_VECTORCALL_TPNEW
typedef PyObject * (*__Pyx_tpnewvectorcallfunc)(PyTypeObject* o, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames);
static PyObject * __Pyx_CallTpnewAsVectorcall(__Pyx_tpnewvectorcallfunc f, PyTypeObject* o, PyObject *a, PyObject *k);
#endif

/* CallNewInitFromVectorcall.proto */
#if CYTHON_VECTORCALL_TPNEW
static PyObject *__Pyx_CallNewInitFromVectorcall(PyTypeObject *t, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#endif

/* CallTypeTraverse.proto */
#if !CYTHON_USE_TYPE_SPECS
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* CheckTypeForFreelists.proto */
#if CYTHON_USE_FREELISTS
#if CYTHON_USE_TYPE_SPECS
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t) == (expected_tp)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  Py_TPFLAGS_IS_ABSTRACT
#else
#define __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, expected_tp, expected_size) ((int) ((t)->tp_basicsize == (expected_size)))
#define __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS  (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)
#endif
#define __PYX_CHECK_TYPE_FOR_FREELISTS(t, expected_tp, expected_size)\
    (__PYX_CHECK_FINAL_TYPE_FOR_FREELISTS((t), (expected_tp), (expected_size)) &\
     (int) (!__Pyx_PyType_HasFeature((t), __PYX_CHECK_TYPE_FOR_FREELIST_FLAGS)))
#endif

/* PyType_Ready */
static int(*__Pyx_PyType_Ready)(PyTypeObject *t); /*proto*/

/* ImportFrom */
static PyObject*(*__Pyx_ImportFrom)(PyObject* module, PyObject* name); /*proto*/

/* Py3UpdateBases */
static PyObject*(*__Pyx_PEP560_update_bases)(PyObject *bases); /*proto*/

/* CalculateMetaclass.proto */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* Py3ClassCreate */
static PyObject *(*__Pyx_Py3MetaclassPrepare)(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc); /*proto*/
static PyObject *(*__Pyx_Py3ClassCreate)(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /*proto*/

/* ClassMethod.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
#include "descrobject.h"
#endif
CYTHON_UNUSED static PyObject* __Pyx_Method_ClassMethod(PyObject *method);

/* dict_setdefault.proto (used by CLineInTraceback) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* GCCDiagnostics.proto */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value);

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* Globals.proto */
static PyObject* __Pyx_Globals(void);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *);

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* AddModuleRef.proto */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX < 0x030F00a3) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* FunctionImport.proto */
static int __Pyx_ImportFunction_3_3_0(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* DecompressString_LZSS.proto */
static PyObject *__Pyx_DecompressString_LZSS(const char *s, size_t compressed_length, size_t uncompressed_length);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#include <stdlib.h>
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_VECTORCALL
        #define __PYX_VECTORCALL_ABI_SUFFIX  "_vectorcall"
    #else
        #define __PYX_VECTORCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_VECTORCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#if CYTHON_OPAQUE_OBJECTS && CYTHON_COMPILING_IN_LIMITED_API
    #define __PYX_OPAQUE_OBJECTS_ABI_SUFFIX "opaque"
#else
    #define __PYX_OPAQUE_OBJECTS_ABI_SUFFIX
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX __PYX_OPAQUE_OBJECTS_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."


/* Module declarations from "cython" */

/* Module declarations from "Cython.Tempita._tempita" */
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "Cython.Tempita._tempita"
extern int __pyx_module_is_main_Cython__Tempita___tempita;
int __pyx_module_is_main_Cython__Tempita___tempita = 0;

/* Implementation of "Cython.Tempita._tempita" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_open;
static PyObject *__pyx_builtin_id;
static PyObject *__pyx_builtin_zip;
static PyObject *__pyx_builtin_eval;
static PyObject *__pyx_builtin_enumerate;
static PyObject *__pyx_builtin_print;
/* #### Code section: string_decls ### */
static const char __pyx_k_A_small_templating_language_Thi[] = "\nA small templating language\n\nThis implements a small templating language.  This language implements\nif/elif/else, for/continue/break, expressions, and blocks of Python\ncode.  The syntax is::\n\n  {{any expression (function calls etc)}}\n  {{any expression | filter}}\n  {{for x in y}}...{{endfor}}\n  {{if x}}x{{elif y}}y{{else}}z{{endif}}\n  {{py:x=1}}\n  {{py:\n  def foo(bar):\n      return \047baz\047\n  }}\n  {{default var = default_value}}\n  {{# comment}}\n\nYou use this with the ``Template`` class or the ``sub`` shortcut.\nThe ``Template`` class takes the template string and the name of\nthe template (for errors) and a default namespace.  Then (like\n``string.Template``) you can call the ``tmpl.substitute(**kw)``\nmethod to make a substitution (or ``tmpl.substitute(a_dict)``).\n\n``sub(content, **kw)`` substitutes the template immediately.  You\ncan use ``__name=\047tmpl.html\047`` to set the name of the template.\n\nIf there are syntax errors ``TemplateError`` will be raised.\n";
/* #### Code section: decls ### */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_coerce_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_v); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_13TemplateError___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_message, PyObject *__pyx_v_position, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_13TemplateError_2__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_2get_file_template(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name, PyObject *__pyx_v_from_template); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_content, PyObject *__pyx_v_name, PyObject *__pyx_v_namespace, PyObject *__pyx_v_stacklevel, PyObject *__pyx_v_get_template, PyObject *__pyx_v_default_inherit, PyObject *__pyx_v_line_offset, PyObject *__pyx_v_delimiters, PyObject *__pyx_v_delimeters); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_36__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_2from_filename(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cls, PyObject *__pyx_v_filename, PyObject *__pyx_v_namespace, PyObject *__pyx_v_encoding, PyObject *__pyx_v_default_inherit, PyObject *__pyx_v_get_template); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_4__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_6substitute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kw); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_8_interpret(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_ns); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_10_interpret_inherit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_body, PyObject *__pyx_v_defs, PyObject *__pyx_v_inherit_template, PyObject *__pyx_v_ns); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_12_interpret_codes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_codes, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_14_interpret_code(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_16_interpret_for(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_vars, PyObject *__pyx_v_expr, PyObject *__pyx_v_content, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_18_interpret_if(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parts, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_20_eval(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_ns, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_22_exec(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_ns, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_24_repr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_value, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_26_add_line_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_msg, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_4sub(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_content, PyObject *__pyx_v_delimiters, PyObject *__pyx_v_kw); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6paste_script_template_renderer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_content, PyObject *__pyx_v_vars, PyObject *__pyx_v_filename); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_kw); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_2__setattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_4__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_6__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_8__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_template, PyObject *__pyx_v_func_name, PyObject *__pyx_v_func_signature, PyObject *__pyx_v_body, PyObject *__pyx_v_ns, PyObject *__pyx_v_pos, PyObject *__pyx_v_bound_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_4__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_6__call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kw); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_8__get__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_obj, CYTHON_UNUSED PyObject *__pyx_v_type); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_10_parse_signature(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kw); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_14TemplateObject___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_14TemplateObject_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_template_obj); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_2__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_attr); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_4__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty___call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kw); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_2__str__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_4__repr__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_6__unicode__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_8__iter__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_10__bool__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8lex(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s, PyObject *__pyx_v_name, PyObject *__pyx_v_trim_whitespace, PyObject *__pyx_v_line_offset, PyObject *__pyx_v_delimiters); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_10trim_lex(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_12find_position(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_index, PyObject *__pyx_v_last_index, PyObject *__pyx_v_last_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_14parse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s, PyObject *__pyx_v_name, PyObject *__pyx_v_line_offset, PyObject *__pyx_v_delimiters); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_16parse_expr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_18parse_cond(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20parse_one_cond(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_22parse_for(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_24parse_default(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, CYTHON_UNUSED PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_26parse_inherit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, CYTHON_UNUSED PyObject *__pyx_v_name, CYTHON_UNUSED PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_28parse_def(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_15parse_signature_get_token(PyObject *__pyx_self, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_30parse_signature(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_sig_text, PyObject *__pyx_v_name, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_32isolate_expression(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_start_pos, PyObject *__pyx_v_end_pos); /* proto */
static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_34fill_command(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_tp_new__initialisation_6Cython_7Tempita_8_tempita___pyx_defaults(PyObject *o, 
#if CYTHON_VECTORCALL_TPNEW
    PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames
#else
    PyObject *a, PyObject *k
#endif
); /*proto*/
static PyObject *__pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults(PyTypeObject *t, 
#if CYTHON_VECTORCALL_TPNEW
    PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames
#else
    PyObject *a, PyObject *k
#endif
); /*proto*/
#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_defaults(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
#endif
#if !CYTHON_VECTORCALL_TPNEW
#define __pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_defaults __pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults
#endif
#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults(PyObject *t, PyObject *const *args, size_t nargsf, PyObject *kwnames); /*proto*/
#endif
static PyObject *__pyx_tp_new__initialisation_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyObject *o, 
#if CYTHON_VECTORCALL_TPNEW
    PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames
#else
    PyObject *a, PyObject *k
#endif
); /*proto*/
static PyObject *__pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyTypeObject *t, 
#if CYTHON_VECTORCALL_TPNEW
    PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames
#else
    PyObject *a, PyObject *k
#endif
); /*proto*/
#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
#endif
#if !CYTHON_VECTORCALL_TPNEW
#define __pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature __pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature
#endif
#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyObject *t, PyObject *const *args, size_t nargsf, PyObject *kwnames); /*proto*/
#endif
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

#ifdef __cplusplus
namespace {
  #endif
  typedef struct {
    PyObject *__pyx_d;
    PyObject *__pyx_b;
    PyObject *__pyx_cython_runtime;
    PyObject *__pyx_empty_tuple;
    PyObject *__pyx_empty_bytes;
    PyObject *__pyx_empty_unicode;
    PyObject *__pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults;
    PyObject *__pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature;
    PyTypeObject *__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults;
    PyTypeObject *__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature;
    __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_get;
    __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
    __Pyx_CachedCFunction __pyx_umethod_PyDict_Type__update;
    __Pyx_CachedCFunction __pyx_umethod_PyUnicode_Type__lstrip;
    __Pyx_CachedCFunction __pyx_umethod_PyUnicode_Type__strip;
    PyObject *__pyx_slice[4];
    PyObject *__pyx_tuple[24];
    PyObject *__pyx_codeobj_tab[57];
    PyObject *__pyx_string_tab[493];
    PyObject *__pyx_number_tab[5];
/* #### Code section: module_state_contents ### */
/* PyFrozenDict.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_PyFrozenDictType;
#endif

/* IterNextPlain.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
PyObject *__Pyx_GetBuiltinNext_LimitedAPI_cache;
#endif

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionPerModule.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;


#if CYTHON_USE_FREELISTS
struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *__pyx_freelist_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature[8];
int __pyx_freecount_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature;
#endif
/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;
#ifdef __cplusplus
} /* anonymous namespace */
#endif

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u__5 __pyx_string_tab[0]
#define __pyx_kp_u__11 __pyx_string_tab[1]
#define __pyx_kp_u__13 __pyx_string_tab[2]
#define __pyx_kp_u__14 __pyx_string_tab[3]
#define __pyx_kp_u_ __pyx_string_tab[4]
#define __pyx_kp_u__12 __pyx_string_tab[5]
#define __pyx_kp_u_around __pyx_string_tab[6]
#define __pyx_kp_u_at_2 __pyx_string_tab[7]
#define __pyx_kp_u_at_line __pyx_string_tab[8]
#define __pyx_kp_u_column __pyx_string_tab[9]
#define __pyx_kp_u_in_s __pyx_string_tab[10]
#define __pyx_kp_u_in_file_s __pyx_string_tab[11]
#define __pyx_kp_u_in_string_r __pyx_string_tab[12]
#define __pyx_kp_u_inside_expression __pyx_string_tab[13]
#define __pyx_kp_u_name_3 __pyx_string_tab[14]
#define __pyx_kp_u_outside_expression __pyx_string_tab[15]
#define __pyx_kp_u_to_finish_last_expression __pyx_string_tab[16]
#define __pyx_kp_u__15 __pyx_string_tab[17]
#define __pyx_kp_u_prog_OPTIONS_TEMPLATE_arg_value __pyx_string_tab[18]
#define __pyx_kp_u_s_outside_of_an_if_block __pyx_string_tab[19]
#define __pyx_kp_u_s_with_no_expression __pyx_string_tab[20]
#define __pyx_kp_u_delimeters_kwarg_is_being_depre __pyx_string_tab[21]
#define __pyx_kp_u__8 __pyx_string_tab[22]
#define __pyx_kp_u__16 __pyx_string_tab[23]
#define __pyx_kp_u_at __pyx_string_tab[24]
#define __pyx_kp_u__18 __pyx_string_tab[25]
#define __pyx_kp_u__19 __pyx_string_tab[26]
#define __pyx_kp_u__17 __pyx_string_tab[27]
#define __pyx_kp_u__10 __pyx_string_tab[28]
#define __pyx_kp_u__24 __pyx_string_tab[29]
#define __pyx_kp_u_env __pyx_string_tab[30]
#define __pyx_kp_u_output __pyx_string_tab[31]
#define __pyx_kp_u_o __pyx_string_tab[32]
#define __pyx_kp_u_pyc __pyx_string_tab[33]
#define __pyx_kp_u_pyo __pyx_string_tab[34]
#define __pyx_kp_u__9 __pyx_string_tab[35]
#define __pyx_kp_u_s __pyx_string_tab[36]
#define __pyx_kp_u__3 __pyx_string_tab[37]
#define __pyx_kp_u_stdin_2 __pyx_string_tab[38]
#define __pyx_kp_u_string __pyx_string_tab[39]
#define __pyx_kp_u_tempita_function __pyx_string_tab[40]
#define __pyx_kp_u__7 __pyx_string_tab[41]
#define __pyx_kp_u__4 __pyx_string_tab[42]
#define __pyx_kp_u__2 __pyx_string_tab[43]
#define __pyx_kp_u_Bad_argument_r __pyx_string_tab[44]
#define __pyx_kp_u_Bad_for_no_in_in_r __pyx_string_tab[45]
#define __pyx_kp_u_Cannot_decode_bytes_value_r_into __pyx_string_tab[46]
#define __pyx_kp_u_Cannot_encode_unicode_value_r_in __pyx_string_tab[47]
#define __pyx_kp_u_Cython_Tempita__looper __pyx_string_tab[48]
#define __pyx_kp_u_Cython_Tempita__tempita_py __pyx_string_tab[49]
#define __pyx_kp_u_Exception_raised_while_parsing_a __pyx_string_tab[50]
#define __pyx_kp_u_Expression_must_be_default_var_v __pyx_string_tab[51]
#define __pyx_kp_u_Extra_position_arguments_s __pyx_string_tab[52]
#define __pyx_kp_u_File_to_write_output_to_default __pyx_string_tab[53]
#define __pyx_kp_u_Function_definition_doesn_t_end __pyx_string_tab[54]
#define __pyx_kp_u_If_you_pass_in_a_single_argument __pyx_string_tab[55]
#define __pyx_kp_u_Invalid_signature_s __pyx_string_tab[56]
#define __pyx_kp_u_Missing_argument_s __pyx_string_tab[57]
#define __pyx_kp_u_Missing_enddef __pyx_string_tab[58]
#define __pyx_kp_u_Missing_endif __pyx_string_tab[59]
#define __pyx_kp_u_Multi_line_py_blocks_must_start __pyx_string_tab[60]
#define __pyx_kp_u_Need_i_items_to_unpack_got_i_ite __pyx_string_tab[61]
#define __pyx_kp_u_No __pyx_string_tab[62]
#define __pyx_kp_u_No_endfor __pyx_string_tab[63]
#define __pyx_kp_u_No_endif __pyx_string_tab[64]
#define __pyx_kp_u_None __pyx_string_tab[65]
#define __pyx_kp_u_Not_a_valid_variable_name_for_de __pyx_string_tab[66]
#define __pyx_kp_u_Put_the_environment_in_as_top_le __pyx_string_tab[67]
#define __pyx_kp_u_Unexpected_s __pyx_string_tab[68]
#define __pyx_kp_u_Unexpected_argument_s __pyx_string_tab[69]
#define __pyx_kp_u_Unexpected_token __pyx_string_tab[70]
#define __pyx_kp_u_Unknown_code_r __pyx_string_tab[71]
#define __pyx_kp_u_You_can_only_give_one_positional __pyx_string_tab[72]
#define __pyx_kp_u_You_can_only_give_positional_or __pyx_string_tab[73]
#define __pyx_kp_u_You_cannot_have_in_the_variable __pyx_string_tab[74]
#define __pyx_kp_u_You_cannot_use_inheritance_witho __pyx_string_tab[75]
#define __pyx_kp_u_You_must_give_a_template_filenam __pyx_string_tab[76]
#define __pyx_kp_u__20 __pyx_string_tab[77]
#define __pyx_kp_u_n_r_t __pyx_string_tab[78]
#define __pyx_kp_u_s_in_s __pyx_string_tab[79]
#define __pyx_kp_u__22 __pyx_string_tab[80]
#define __pyx_kp_u_if_elif_for_def_inherit_default __pyx_string_tab[81]
#define __pyx_kp_u_t_n __pyx_string_tab[82]
#define __pyx_kp_u_a_z__a_z0_9 __pyx_string_tab[83]
#define __pyx_kp_u_continue_outside_of_for_loop __pyx_string_tab[84]
#define __pyx_kp_u_def_2 __pyx_string_tab[85]
#define __pyx_kp_u_default_2 __pyx_string_tab[86]
#define __pyx_kp_u_elif __pyx_string_tab[87]
#define __pyx_kp_u_for_2 __pyx_string_tab[88]
#define __pyx_kp_u_if __pyx_string_tab[89]
#define __pyx_kp_u_inherit_3 __pyx_string_tab[90]
#define __pyx_kp_u_invalid_syntax_in_expression_s __pyx_string_tab[91]
#define __pyx_kp_u_py_2 __pyx_string_tab[92]
#define __pyx_kp_u__21 __pyx_string_tab[93]
#define __pyx_kp_u__25 __pyx_string_tab[94]
#define __pyx_kp_u_default_x_y_is_not_supported __pyx_string_tab[95]
#define __pyx_kp_u__6 __pyx_string_tab[96]
#define __pyx_kp_u__23 __pyx_string_tab[97]
#define __pyx_kp_u__26 __pyx_string_tab[98]
#define __pyx_n_u_Cython_Tempita__tempita __pyx_string_tab[99]
#define __pyx_n_u_ENDMARKER __pyx_string_tab[100]
#define __pyx_n_u_Empty __pyx_string_tab[101]
#define __pyx_n_u_FILENAME __pyx_string_tab[102]
#define __pyx_n_u_I __pyx_string_tab[103]
#define __pyx_n_u_NAME __pyx_string_tab[104]
#define __pyx_n_u_OP __pyx_string_tab[105]
#define __pyx_n_u_OptionParser __pyx_string_tab[106]
#define __pyx_n_u_StringIO __pyx_string_tab[107]
#define __pyx_n_u_Template __pyx_string_tab[108]
#define __pyx_n_u_Template___init __pyx_string_tab[109]
#define __pyx_n_u_Template___repr __pyx_string_tab[110]
#define __pyx_n_u_Template__add_line_info __pyx_string_tab[111]
#define __pyx_n_u_Template__eval __pyx_string_tab[112]
#define __pyx_n_u_Template__exec __pyx_string_tab[113]
#define __pyx_n_u_Template__interpret __pyx_string_tab[114]
#define __pyx_n_u_Template__interpret_code __pyx_string_tab[115]
#define __pyx_n_u_Template__interpret_codes __pyx_string_tab[116]
#define __pyx_n_u_Template__interpret_for __pyx_string_tab[117]
#define __pyx_n_u_Template__interpret_if __pyx_string_tab[118]
#define __pyx_n_u_Template__interpret_inherit __pyx_string_tab[119]
#define __pyx_n_u_Template__repr __pyx_string_tab[120]
#define __pyx_n_u_Template_from_filename __pyx_string_tab[121]
#define __pyx_n_u_Template_substitute __pyx_string_tab[122]
#define __pyx_n_u_TemplateDef __pyx_string_tab[123]
#define __pyx_n_u_TemplateDef___call __pyx_string_tab[124]
#define __pyx_n_u_TemplateDef___get __pyx_string_tab[125]
#define __pyx_n_u_TemplateDef___init __pyx_string_tab[126]
#define __pyx_n_u_TemplateDef___repr __pyx_string_tab[127]
#define __pyx_n_u_TemplateDef___str __pyx_string_tab[128]
#define __pyx_n_u_TemplateDef__parse_signature __pyx_string_tab[129]
#define __pyx_n_u_TemplateError __pyx_string_tab[130]
#define __pyx_n_u_TemplateError___init __pyx_string_tab[131]
#define __pyx_n_u_TemplateError___str __pyx_string_tab[132]
#define __pyx_n_u_TemplateObject __pyx_string_tab[133]
#define __pyx_n_u_TemplateObject___init __pyx_string_tab[134]
#define __pyx_n_u_TemplateObject___repr __pyx_string_tab[135]
#define __pyx_n_u_TemplateObjectGetter __pyx_string_tab[136]
#define __pyx_n_u_TemplateObjectGetter___getattr __pyx_string_tab[137]
#define __pyx_n_u_TemplateObjectGetter___init __pyx_string_tab[138]
#define __pyx_n_u_TemplateObjectGetter___repr __pyx_string_tab[139]
#define __pyx_n_u_Empty_2 __pyx_string_tab[140]
#define __pyx_n_u_Empty___bool __pyx_string_tab[141]
#define __pyx_n_u_Empty___call __pyx_string_tab[142]
#define __pyx_n_u_Empty___iter __pyx_string_tab[143]
#define __pyx_n_u_Empty___repr __pyx_string_tab[144]
#define __pyx_n_u_Empty___str __pyx_string_tab[145]
#define __pyx_n_u_Empty___unicode __pyx_string_tab[146]
#define __pyx_n_u_TemplateBreak __pyx_string_tab[147]
#define __pyx_n_u_TemplateContinue __pyx_string_tab[148]
#define __pyx_n_u_TemplateObjectGetter__template __pyx_string_tab[149]
#define __pyx_n_u_TemplateObject__name __pyx_string_tab[150]
#define __pyx_n_u_all __pyx_string_tab[151]
#define __pyx_n_u_bool __pyx_string_tab[152]
#define __pyx_n_u_builtins __pyx_string_tab[153]
#define __pyx_n_u_call __pyx_string_tab[154]
#define __pyx_n_u_class __pyx_string_tab[155]
#define __pyx_n_u_class_getitem __pyx_string_tab[156]
#define __pyx_n_u_enter __pyx_string_tab[157]
#define __pyx_n_u_exit __pyx_string_tab[158]
#define __pyx_n_u_file __pyx_string_tab[159]
#define __pyx_n_u_func __pyx_string_tab[160]
#define __pyx_n_u_get_2 __pyx_string_tab[161]
#define __pyx_n_u_getattr __pyx_string_tab[162]
#define __pyx_n_u_getitem __pyx_string_tab[163]
#define __pyx_n_u_inherit __pyx_string_tab[164]
#define __pyx_n_u_init __pyx_string_tab[165]
#define __pyx_n_u_iter __pyx_string_tab[166]
#define __pyx_n_u_main __pyx_string_tab[167]
#define __pyx_n_u_module __pyx_string_tab[168]
#define __pyx_n_u_name_4 __pyx_string_tab[169]
#define __pyx_n_u_name_2 __pyx_string_tab[170]
#define __pyx_n_u_qualname __pyx_string_tab[171]
#define __pyx_n_u_repr_2 __pyx_string_tab[172]
#define __pyx_n_u_setattr __pyx_string_tab[173]
#define __pyx_n_u_str __pyx_string_tab[174]
#define __pyx_n_u_template_name __pyx_string_tab[175]
#define __pyx_n_u_traceback_hide __pyx_string_tab[176]
#define __pyx_n_u_unicode_2 __pyx_string_tab[177]
#define __pyx_n_u_add_line_info __pyx_string_tab[178]
#define __pyx_n_u_body_2 __pyx_string_tab[179]
#define __pyx_n_u_bound_self_2 __pyx_string_tab[180]
#define __pyx_n_u_eval_2 __pyx_string_tab[181]
#define __pyx_n_u_exec __pyx_string_tab[182]
#define __pyx_n_u_fill_command_usage __pyx_string_tab[183]
#define __pyx_n_u_func_name_2 __pyx_string_tab[184]
#define __pyx_n_u_func_signature_2 __pyx_string_tab[185]
#define __pyx_n_u_getframe __pyx_string_tab[186]
#define __pyx_n_u_interpret __pyx_string_tab[187]
#define __pyx_n_u_interpret_code __pyx_string_tab[188]
#define __pyx_n_u_interpret_codes __pyx_string_tab[189]
#define __pyx_n_u_interpret_for __pyx_string_tab[190]
#define __pyx_n_u_interpret_if __pyx_string_tab[191]
#define __pyx_n_u_interpret_inherit __pyx_string_tab[192]
#define __pyx_n_u_looper __pyx_string_tab[193]
#define __pyx_n_u_ns_2 __pyx_string_tab[194]
#define __pyx_n_u_parse_signature __pyx_string_tab[195]
#define __pyx_n_u_parsed __pyx_string_tab[196]
#define __pyx_n_u_pos_2 __pyx_string_tab[197]
#define __pyx_n_u_repr __pyx_string_tab[198]
#define __pyx_n_u_template_2 __pyx_string_tab[199]
#define __pyx_n_u_unicode __pyx_string_tab[200]
#define __pyx_n_u_action __pyx_string_tab[201]
#define __pyx_n_u_add_option __pyx_string_tab[202]
#define __pyx_n_u_append __pyx_string_tab[203]
#define __pyx_n_u_arg0 __pyx_string_tab[204]
#define __pyx_n_u_args __pyx_string_tab[205]
#define __pyx_n_u_argv __pyx_string_tab[206]
#define __pyx_n_u_attr __pyx_string_tab[207]
#define __pyx_n_u_base __pyx_string_tab[208]
#define __pyx_n_u_body __pyx_string_tab[209]
#define __pyx_n_u_bound_self __pyx_string_tab[210]
#define __pyx_n_u_break __pyx_string_tab[211]
#define __pyx_n_u_bunch __pyx_string_tab[212]
#define __pyx_n_u_bunch___getattr __pyx_string_tab[213]
#define __pyx_n_u_bunch___getitem __pyx_string_tab[214]
#define __pyx_n_u_bunch___init __pyx_string_tab[215]
#define __pyx_n_u_bunch___repr __pyx_string_tab[216]
#define __pyx_n_u_bunch___setattr __pyx_string_tab[217]
#define __pyx_n_u_c __pyx_string_tab[218]
#define __pyx_n_u_caller __pyx_string_tab[219]
#define __pyx_n_u_chunks __pyx_string_tab[220]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[221]
#define __pyx_n_u_cls __pyx_string_tab[222]
#define __pyx_n_u_code __pyx_string_tab[223]
#define __pyx_n_u_codes __pyx_string_tab[224]
#define __pyx_n_u_coerce_text __pyx_string_tab[225]
#define __pyx_n_u_column_2 __pyx_string_tab[226]
#define __pyx_n_u_comment __pyx_string_tab[227]
#define __pyx_n_u_compile __pyx_string_tab[228]
#define __pyx_n_u_cond __pyx_string_tab[229]
#define __pyx_n_u_content __pyx_string_tab[230]
#define __pyx_n_u_context __pyx_string_tab[231]
#define __pyx_n_u_continue __pyx_string_tab[232]
#define __pyx_n_u_copy __pyx_string_tab[233]
#define __pyx_n_u_current __pyx_string_tab[234]
#define __pyx_n_u_decode __pyx_string_tab[235]
#define __pyx_n_u_def __pyx_string_tab[236]
#define __pyx_n_u_default __pyx_string_tab[237]
#define __pyx_n_u_default_encoding __pyx_string_tab[238]
#define __pyx_n_u_default_expr __pyx_string_tab[239]
#define __pyx_n_u_default_inherit __pyx_string_tab[240]
#define __pyx_n_u_default_namespace __pyx_string_tab[241]
#define __pyx_n_u_defaults __pyx_string_tab[242]
#define __pyx_n_u_defs __pyx_string_tab[243]
#define __pyx_n_u_delimeters __pyx_string_tab[244]
#define __pyx_n_u_delimiters __pyx_string_tab[245]
#define __pyx_n_u_dest __pyx_string_tab[246]
#define __pyx_n_u_dirname __pyx_string_tab[247]
#define __pyx_n_u_e __pyx_string_tab[248]
#define __pyx_n_u_ecol __pyx_string_tab[249]
#define __pyx_n_u_elif_2 __pyx_string_tab[250]
#define __pyx_n_u_else __pyx_string_tab[251]
#define __pyx_n_u_encode __pyx_string_tab[252]
#define __pyx_n_u_encoding __pyx_string_tab[253]
#define __pyx_n_u_end __pyx_string_tab[254]
#define __pyx_n_u_end_braces __pyx_string_tab[255]
#define __pyx_n_u_end_pos __pyx_string_tab[256]
#define __pyx_n_u_enddef __pyx_string_tab[257]
#define __pyx_n_u_endfor __pyx_string_tab[258]
#define __pyx_n_u_endif __pyx_string_tab[259]
#define __pyx_n_u_endswith __pyx_string_tab[260]
#define __pyx_n_u_enumerate __pyx_string_tab[261]
#define __pyx_n_u_environ __pyx_string_tab[262]
#define __pyx_n_u_erow __pyx_string_tab[263]
#define __pyx_n_u_escape __pyx_string_tab[264]
#define __pyx_n_u_eval __pyx_string_tab[265]
#define __pyx_n_u_exit_2 __pyx_string_tab[266]
#define __pyx_n_u_expr __pyx_string_tab[267]
#define __pyx_n_u_extra_kw __pyx_string_tab[268]
#define __pyx_n_u_f __pyx_string_tab[269]
#define __pyx_n_u_f_globals __pyx_string_tab[270]
#define __pyx_n_u_f_lineno __pyx_string_tab[271]
#define __pyx_n_u_filename __pyx_string_tab[272]
#define __pyx_n_u_fill_command __pyx_string_tab[273]
#define __pyx_n_u_find_position __pyx_string_tab[274]
#define __pyx_n_u_finditer __pyx_string_tab[275]
#define __pyx_n_u_first __pyx_string_tab[276]
#define __pyx_n_u_for __pyx_string_tab[277]
#define __pyx_n_u_from_filename __pyx_string_tab[278]
#define __pyx_n_u_from_template __pyx_string_tab[279]
#define __pyx_n_u_func_2 __pyx_string_tab[280]
#define __pyx_n_u_func_name __pyx_string_tab[281]
#define __pyx_n_u_func_signature __pyx_string_tab[282]
#define __pyx_n_u_generate_tokens __pyx_string_tab[283]
#define __pyx_n_u_get __pyx_string_tab[284]
#define __pyx_n_u_get_file_template __pyx_string_tab[285]
#define __pyx_n_u_get_template __pyx_string_tab[286]
#define __pyx_n_u_get_token __pyx_string_tab[287]
#define __pyx_n_u_globals __pyx_string_tab[288]
#define __pyx_n_u_group __pyx_string_tab[289]
#define __pyx_n_u_help __pyx_string_tab[290]
#define __pyx_n_u_i __pyx_string_tab[291]
#define __pyx_n_u_id __pyx_string_tab[292]
#define __pyx_n_u_if_2 __pyx_string_tab[293]
#define __pyx_n_u_in_expr __pyx_string_tab[294]
#define __pyx_n_u_in_re __pyx_string_tab[295]
#define __pyx_n_u_index __pyx_string_tab[296]
#define __pyx_n_u_inherit_2 __pyx_string_tab[297]
#define __pyx_n_u_inherit_template __pyx_string_tab[298]
#define __pyx_n_u_io __pyx_string_tab[299]
#define __pyx_n_u_isolate_expression __pyx_string_tab[300]
#define __pyx_n_u_item __pyx_string_tab[301]
#define __pyx_n_u_items __pyx_string_tab[302]
#define __pyx_n_u_join __pyx_string_tab[303]
#define __pyx_n_u_k __pyx_string_tab[304]
#define __pyx_n_u_key __pyx_string_tab[305]
#define __pyx_n_u_kw __pyx_string_tab[306]
#define __pyx_n_u_last __pyx_string_tab[307]
#define __pyx_n_u_last_index __pyx_string_tab[308]
#define __pyx_n_u_last_pos __pyx_string_tab[309]
#define __pyx_n_u_last_trim __pyx_string_tab[310]
#define __pyx_n_u_lead_whitespace_re __pyx_string_tab[311]
#define __pyx_n_u_lex __pyx_string_tab[312]
#define __pyx_n_u_line __pyx_string_tab[313]
#define __pyx_n_u_line_offset __pyx_string_tab[314]
#define __pyx_n_u_lineno __pyx_string_tab[315]
#define __pyx_n_u_lines __pyx_string_tab[316]
#define __pyx_n_u_list __pyx_string_tab[317]
#define __pyx_n_u_looper_2 __pyx_string_tab[318]
#define __pyx_n_u_lstrip __pyx_string_tab[319]
#define __pyx_n_u_m __pyx_string_tab[320]
#define __pyx_n_u_match __pyx_string_tab[321]
#define __pyx_n_u_message __pyx_string_tab[322]
#define __pyx_n_u_metavar __pyx_string_tab[323]
#define __pyx_n_u_msg __pyx_string_tab[324]
#define __pyx_n_u_name __pyx_string_tab[325]
#define __pyx_n_u_namespace __pyx_string_tab[326]
#define __pyx_n_u_nest_count __pyx_string_tab[327]
#define __pyx_n_u_nest_type __pyx_string_tab[328]
#define __pyx_n_u_next __pyx_string_tab[329]
#define __pyx_n_u_next_chunk __pyx_string_tab[330]
#define __pyx_n_u_ns __pyx_string_tab[331]
#define __pyx_n_u_obj __pyx_string_tab[332]
#define __pyx_n_u_object __pyx_string_tab[333]
#define __pyx_n_u_open __pyx_string_tab[334]
#define __pyx_n_u_options __pyx_string_tab[335]
#define __pyx_n_u_optparse __pyx_string_tab[336]
#define __pyx_n_u_os __pyx_string_tab[337]
#define __pyx_n_u_out __pyx_string_tab[338]
#define __pyx_n_u_output_2 __pyx_string_tab[339]
#define __pyx_n_u_parse __pyx_string_tab[340]
#define __pyx_n_u_parse_args __pyx_string_tab[341]
#define __pyx_n_u_parse_cond __pyx_string_tab[342]
#define __pyx_n_u_parse_def __pyx_string_tab[343]
#define __pyx_n_u_parse_default __pyx_string_tab[344]
#define __pyx_n_u_parse_expr __pyx_string_tab[345]
#define __pyx_n_u_parse_for __pyx_string_tab[346]
#define __pyx_n_u_parse_inherit __pyx_string_tab[347]
#define __pyx_n_u_parse_one_cond __pyx_string_tab[348]
#define __pyx_n_u_parse_signature_2 __pyx_string_tab[349]
#define __pyx_n_u_parse_signature_locals_get_token __pyx_string_tab[350]
#define __pyx_n_u_parser __pyx_string_tab[351]
#define __pyx_n_u_part __pyx_string_tab[352]
#define __pyx_n_u_parts __pyx_string_tab[353]
#define __pyx_n_u_paste_script_template_renderer __pyx_string_tab[354]
#define __pyx_n_u_path __pyx_string_tab[355]
#define __pyx_n_u_pieces __pyx_string_tab[356]
#define __pyx_n_u_pop __pyx_string_tab[357]
#define __pyx_n_u_pos __pyx_string_tab[358]
#define __pyx_n_u_position __pyx_string_tab[359]
#define __pyx_n_u_prev __pyx_string_tab[360]
#define __pyx_n_u_prev_ok __pyx_string_tab[361]
#define __pyx_n_u_print __pyx_string_tab[362]
#define __pyx_n_u_py __pyx_string_tab[363]
#define __pyx_n_u_rb __pyx_string_tab[364]
#define __pyx_n_u_re __pyx_string_tab[365]
#define __pyx_n_u_read __pyx_string_tab[366]
#define __pyx_n_u_readline __pyx_string_tab[367]
#define __pyx_n_u_reason __pyx_string_tab[368]
#define __pyx_n_u_result __pyx_string_tab[369]
#define __pyx_n_u_return __pyx_string_tab[370]
#define __pyx_n_u_s_2 __pyx_string_tab[371]
#define __pyx_n_u_scol __pyx_string_tab[372]
#define __pyx_n_u_search __pyx_string_tab[373]
#define __pyx_n_u_self __pyx_string_tab[374]
#define __pyx_n_u_self_2 __pyx_string_tab[375]
#define __pyx_n_u_setdefault __pyx_string_tab[376]
#define __pyx_n_u_sig __pyx_string_tab[377]
#define __pyx_n_u_sig_args __pyx_string_tab[378]
#define __pyx_n_u_sig_text __pyx_string_tab[379]
#define __pyx_n_u_signature __pyx_string_tab[380]
#define __pyx_n_u_single_statements __pyx_string_tab[381]
#define __pyx_n_u_split __pyx_string_tab[382]
#define __pyx_n_u_srow __pyx_string_tab[383]
#define __pyx_n_u_stacklevel __pyx_string_tab[384]
#define __pyx_n_u_start __pyx_string_tab[385]
#define __pyx_n_u_start_braces __pyx_string_tab[386]
#define __pyx_n_u_start_pos __pyx_string_tab[387]
#define __pyx_n_u_startswith __pyx_string_tab[388]
#define __pyx_n_u_statement_re __pyx_string_tab[389]
#define __pyx_n_u_stdin __pyx_string_tab[390]
#define __pyx_n_u_stdout __pyx_string_tab[391]
#define __pyx_n_u_store_true __pyx_string_tab[392]
#define __pyx_n_u_str_2 __pyx_string_tab[393]
#define __pyx_n_u_string_2 __pyx_string_tab[394]
#define __pyx_n_u_strip __pyx_string_tab[395]
#define __pyx_n_u_sub __pyx_string_tab[396]
#define __pyx_n_u_subdefs __pyx_string_tab[397]
#define __pyx_n_u_substitute __pyx_string_tab[398]
#define __pyx_n_u_sys __pyx_string_tab[399]
#define __pyx_n_u_templ __pyx_string_tab[400]
#define __pyx_n_u_template __pyx_string_tab[401]
#define __pyx_n_u_template_content __pyx_string_tab[402]
#define __pyx_n_u_template_name_2 __pyx_string_tab[403]
#define __pyx_n_u_template_obj __pyx_string_tab[404]
#define __pyx_n_u_tmpl __pyx_string_tab[405]
#define __pyx_n_u_tok_string __pyx_string_tab[406]
#define __pyx_n_u_tok_type __pyx_string_tab[407]
#define __pyx_n_u_token_re __pyx_string_tab[408]
#define __pyx_n_u_tokenize __pyx_string_tab[409]
#define __pyx_n_u_tokens __pyx_string_tab[410]
#define __pyx_n_u_trail_whitespace_re __pyx_string_tab[411]
#define __pyx_n_u_trim_lex __pyx_string_tab[412]
#define __pyx_n_u_trim_whitespace __pyx_string_tab[413]
#define __pyx_n_u_tuple __pyx_string_tab[414]
#define __pyx_n_u_type __pyx_string_tab[415]
#define __pyx_n_u_unnest_type __pyx_string_tab[416]
#define __pyx_n_u_update __pyx_string_tab[417]
#define __pyx_n_u_usage __pyx_string_tab[418]
#define __pyx_n_u_use_env __pyx_string_tab[419]
#define __pyx_n_u_utf8 __pyx_string_tab[420]
#define __pyx_n_u_v __pyx_string_tab[421]
#define __pyx_n_u_value __pyx_string_tab[422]
#define __pyx_n_u_value_expr __pyx_string_tab[423]
#define __pyx_n_u_values __pyx_string_tab[424]
#define __pyx_n_u_var __pyx_string_tab[425]
#define __pyx_n_u_var_arg __pyx_string_tab[426]
#define __pyx_n_u_var_arg_type __pyx_string_tab[427]
#define __pyx_n_u_var_args __pyx_string_tab[428]
#define __pyx_n_u_var_kw __pyx_string_tab[429]
#define __pyx_n_u_var_name __pyx_string_tab[430]
#define __pyx_n_u_var_re __pyx_string_tab[431]
#define __pyx_n_u_vars __pyx_string_tab[432]
#define __pyx_n_u_vars_part __pyx_string_tab[433]
#define __pyx_n_u_warn __pyx_string_tab[434]
#define __pyx_n_u_warnings __pyx_string_tab[435]
#define __pyx_n_u_wb __pyx_string_tab[436]
#define __pyx_n_u_write __pyx_string_tab[437]
#define __pyx_n_u_zip __pyx_string_tab[438]
#define __pyx_kp_b_PyObject_PyMethodDef_ml_int_flag __pyx_string_tab[439]
#define __pyx_kp_b_iso88591_t_Qc_7_3a_3aq_5_1 __pyx_string_tab[440]
#define __pyx_kp_b_iso88591_2U_q_xq_XQ_j_Q __pyx_string_tab[441]
#define __pyx_kp_b_iso88591_O_Oq_6_G_XM___a_j_8K___a_Q_1_Bc __pyx_string_tab[442]
#define __pyx_kp_b_iso88591_qd_S_E_1_Q_IZq_gQa_1 __pyx_string_tab[443]
#define __pyx_kp_b_iso88591_A_4q __pyx_string_tab[444]
#define __pyx_kp_b_iso88591_A_1_q_iq_s_6_1_iq_t7_4q_A_iq_1A __pyx_string_tab[445]
#define __pyx_kp_b_iso88591_A_S_t_q_a_t_q_a_4_1F __pyx_string_tab[446]
#define __pyx_kp_b_iso88591_A_AXQ __pyx_string_tab[447]
#define __pyx_kp_b_iso88591_A_F_2V1_1F __pyx_string_tab[448]
#define __pyx_kp_b_iso88591_A_Ja_G_q __pyx_string_tab[449]
#define __pyx_kp_b_iso88591_A_a __pyx_string_tab[450]
#define __pyx_kp_b_iso88591_A_c_at1_4q_A_T_4t9AQ_4q_9Bd_q __pyx_string_tab[451]
#define __pyx_kp_b_iso88591_A_AT_AQ_4q_4q_q __pyx_string_tab[452]
#define __pyx_kp_b_iso88591_A_q __pyx_string_tab[453]
#define __pyx_kp_b_iso88591_A_q_q_6_t1 __pyx_string_tab[454]
#define __pyx_kp_b_iso88591_A_q_uAQk_Ct3e6_fA __pyx_string_tab[455]
#define __pyx_kp_b_iso88591_A_q_T_Q __pyx_string_tab[456]
#define __pyx_kp_b_iso88591_A_t1 __pyx_string_tab[457]
#define __pyx_kp_b_iso88591_A_t1A __pyx_string_tab[458]
#define __pyx_kp_b_iso88591_A_wat_F __pyx_string_tab[459]
#define __pyx_kp_b_iso88591_A_D_T __pyx_string_tab[460]
#define __pyx_kp_b_iso88591_A_4z_D __pyx_string_tab[461]
#define __pyx_kp_b_iso88591_A_HKt1_1_F_2V1_t7_e7_iq_Rq_uCq_a __pyx_string_tab[462]
#define __pyx_kp_b_iso88591_A_avQ_T_U_4_G1_az_Q_a_J_q_HD_Q_r __pyx_string_tab[463]
#define __pyx_kp_b_iso88591_A_Q_AV4_1_k_7r_1_A_was_q_Qa_1_Yd __pyx_string_tab[464]
#define __pyx_kp_b_iso88591_A_Q_vS_q_t1_Cq_E_4z_Kq_Jawa_D_E __pyx_string_tab[465]
#define __pyx_kp_b_iso88591_A_Q_t_q_A_q_oQauAT_oQfA __pyx_string_tab[466]
#define __pyx_kp_b_iso88591_A_Q_4t1_q_uD_M_4A_at1_F_4vQ_1G6 __pyx_string_tab[467]
#define __pyx_kp_b_iso88591_A_Q_HA_s_6_A_4q_a_3avS_1A_A_3awc __pyx_string_tab[468]
#define __pyx_kp_b_iso88591_A_Q_HA_z_7_1_AV4uA __pyx_string_tab[469]
#define __pyx_kp_b_iso88591_A_Q_fD_T_5_1_at1D_A_Q_1_Q_Q_at4q __pyx_string_tab[470]
#define __pyx_kp_b_iso88591_A_Q_HA_4z_AT_Qa_uCq_V1D_T_q_Qd_4 __pyx_string_tab[471]
#define __pyx_kp_b_iso88591_A_M_N_q_IQ_G1_HA_O1 __pyx_string_tab[472]
#define __pyx_kp_b_iso88591_A_5Q_9_IQ_a_1_s_83e_Zq_4M __pyx_string_tab[473]
#define __pyx_kp_b_iso88591_N_m6_wgT_8_q_1_a_Q __pyx_string_tab[474]
#define __pyx_kp_b_iso88591_2T_4q_c_81IU_4_1 __pyx_string_tab[475]
#define __pyx_kp_b_iso88591_uCq_s_q_X_a_Q_a_Q_Q_Q_Q_q_Q_WF __pyx_string_tab[476]
#define __pyx_kp_b_iso88591_Q_iq_Qiq_waq_4_7_6_U_4q_1_6_Ba __pyx_string_tab[477]
#define __pyx_kp_b_iso88591_a_6_q_V1A_xr_a_5_1IQ_uIQa_S_E_V __pyx_string_tab[478]
#define __pyx_kp_b_iso88591_a_86_V1A_5_1A_E_q_b_uIQa_S_t7_A __pyx_string_tab[479]
#define __pyx_kp_b_iso88591_z_Q_vQd_aq_4vQ_t_aq_t1Cwaq_4_6 __pyx_string_tab[480]
#define __pyx_kp_b_iso88591_q_F_2Qa_Q_hc_4q_q_Q_JavQd_F_2Qc __pyx_string_tab[481]
#define __pyx_kp_b_iso88591_2_6_q_5_1A_5_avRq_1KuG6 __pyx_string_tab[482]
#define __pyx_kp_b_iso88591_2_6_q_5_1A_E_q_b_E_q_Q_s_7_Q_m1 __pyx_string_tab[483]
#define __pyx_kp_b_iso88591_q_F_1_vRq_r_vQfL_S_b_HAS __pyx_string_tab[484]
#define __pyx_kp_b_iso88591_31_F_6_fAQ_a_uIQa_S_uKq_e5_G4q __pyx_string_tab[485]
#define __pyx_kp_b_iso88591_1_X_Qhay_q_a_Q_q_q_y_9Cxq_9Cxt5 __pyx_string_tab[486]
#define __pyx_kp_b_iso88591_1_A_A_F_Qa_uCq_uAU_5_AU_5_at1Ba __pyx_string_tab[487]
#define __pyx_kp_b_iso88591_2_81IU_4_1 __pyx_string_tab[488]
#define __pyx_kp_b_iso88591_1_4s_1_t_Q_D_T_F_g __pyx_string_tab[489]
#define __pyx_kp_b_iso88591_Q_q_Qd_D_G5_A_d_aq_a_r_axvQ __pyx_string_tab[490]
#define __pyx_kp_b_iso88591_1_Kq_1_E_Q_Q_c_0_0_T_3EU_5Zq_3 __pyx_string_tab[491]
#define __pyx_kp_b_iso88591_6_L_HA __pyx_string_tab[492]
#define __pyx_int_0 __pyx_number_tab[0]
#define __pyx_int_neg_1 __pyx_number_tab[1]
#define __pyx_int_1 __pyx_number_tab[2]
#define __pyx_int_2 __pyx_number_tab[3]
#define __pyx_int_3 __pyx_number_tab[4]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults);
  Py_CLEAR(clear_module_state->__pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults);
  Py_CLEAR(clear_module_state->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature);
  Py_CLEAR(clear_module_state->__pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature);
  Py_CLEAR(clear_module_state->__pyx_umethod_PyDict_Type_get.method);
  Py_CLEAR(clear_module_state->__pyx_umethod_PyDict_Type_pop.method);
  Py_CLEAR(clear_module_state->__pyx_umethod_PyDict_Type__update.method);
  Py_CLEAR(clear_module_state->__pyx_umethod_PyUnicode_Type__lstrip.method);
  Py_CLEAR(clear_module_state->__pyx_umethod_PyUnicode_Type__strip.method);
  for (int i=0; i<4; ++i) { Py_CLEAR(clear_module_state->__pyx_slice[i]); }
  for (int i=0; i<24; ++i) { Py_CLEAR(clear_module_state->__pyx_tuple[i]); }
  for (int i=0; i<57; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<493; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<5; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CythonFunctionPerModule.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  Py_VISIT(traverse_module_state->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults);
  Py_VISIT(traverse_module_state->__pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults);
  Py_VISIT(traverse_module_state->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature);
  Py_VISIT(traverse_module_state->__pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature);
  Py_VISIT(traverse_module_state->__pyx_umethod_PyDict_Type_get.method);
  Py_VISIT(traverse_module_state->__pyx_umethod_PyDict_Type_pop.method);
  Py_VISIT(traverse_module_state->__pyx_umethod_PyDict_Type__update.method);
  Py_VISIT(traverse_module_state->__pyx_umethod_PyUnicode_Type__lstrip.method);
  Py_VISIT(traverse_module_state->__pyx_umethod_PyUnicode_Type__strip.method);
  for (int i=0; i<4; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_slice[i]); }
  for (int i=0; i<24; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_tuple[i]); }
  for (int i=0; i<57; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<493; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<5; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CythonFunctionPerModule.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */

/* "Cython/Tempita/_tempita.py":47
 * var_re = re.compile(r'^[a-z_][a-z0-9_]*$', re.I)
 * 
 * def coerce_text(v):             # <<<<<<<<<<<<<<
 *     if not isinstance(v, str):
 *         if hasattr(v, '__str__'):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_1coerce_text(PyObject *__pyx_self, PyObject *__pyx_v_v); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_1coerce_text = {"coerce_text", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_1coerce_text, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_1coerce_text(PyObject *__pyx_self, PyObject *__pyx_v_v) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("coerce_text (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_coerce_text(__pyx_self, ((PyObject *)__pyx_v_v));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_coerce_text(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_v) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("coerce_text", 0);

  /* "Cython/Tempita/_tempita.py":48
 * 
 * def coerce_text(v):
 *     if not isinstance(v, str):             # <<<<<<<<<<<<<<
 *         if hasattr(v, '__str__'):
 *             return str(v)
*/
  __pyx_t_1 = PyUnicode_Check(__pyx_v_v); 
  __pyx_t_2 = (!__pyx_t_1);


  if (__pyx_t_2) {


    /* "Cython/Tempita/_tempita.py":49
 * def coerce_text(v):
 *     if not isinstance(v, str):
 *         if hasattr(v, '__str__'):             # <<<<<<<<<<<<<<
 *             return str(v)
 *         else:
*/
    __pyx_t_2 = __Pyx_HasAttr(__pyx_v_v, __pyx_mstate_global->__pyx_n_u_str); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 49, __pyx_L1_error)
    if (__pyx_t_2) {


      /* "Cython/Tempita/_tempita.py":50
 *     if not isinstance(v, str):
 *         if hasattr(v, '__str__'):
 *             return str(v)             # <<<<<<<<<<<<<<
 *         else:
 *             return bytes(v)
*/
      __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_v_v); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 50, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = __pyx_t_3;
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":49
 * def coerce_text(v):
 *     if not isinstance(v, str):
 *         if hasattr(v, '__str__'):             # <<<<<<<<<<<<<<
 *             return str(v)
 *         else:
*/
    }

    /* "Cython/Tempita/_tempita.py":52
 *             return str(v)
 *         else:
 *             return bytes(v)             # <<<<<<<<<<<<<<
 *     return v
 * 
*/
    /*else*/ {
      __pyx_t_4 = NULL;
      __pyx_t_5 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_v};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyBytes_Type), __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 52, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = __pyx_t_3;
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_3 = 0;
      goto __pyx_L0;
    }

    /* "Cython/Tempita/_tempita.py":48
 * 
 * def coerce_text(v):
 *     if not isinstance(v, str):             # <<<<<<<<<<<<<<
 *         if hasattr(v, '__str__'):
 *             return str(v)
*/
  }

  /* "Cython/Tempita/_tempita.py":53
 *         else:
 *             return bytes(v)
 *     return v             # <<<<<<<<<<<<<<
 * 
 * class TemplateError(Exception):
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_v_v);
      __pyx_r = __pyx_v_v;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":47
 * var_re = re.compile(r'^[a-z_][a-z0-9_]*$', re.I)
 * 
 * def coerce_text(v):             # <<<<<<<<<<<<<<
 *     if not isinstance(v, str):
 *         if hasattr(v, '__str__'):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("Cython.Tempita._tempita.coerce_text", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":59
 *     """
 * 
 *     def __init__(self, message, position, name=None):             # <<<<<<<<<<<<<<
 *         Exception.__init__(self, message)
 *         self.position = position
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_13TemplateError_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_13TemplateError_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_13TemplateError_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_13TemplateError_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_message = 0;
  PyObject *__pyx_v_position = 0;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_message,&__pyx_mstate_global->__pyx_n_u_position,&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 59, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 59, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 59, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 59, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 59, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 59, __pyx_L3_error)
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, i); __PYX_ERR(0, 59, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 59, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 59, __pyx_L3_error)
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 59, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 59, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_self = values[0];
    __pyx_v_message = values[1];
    __pyx_v_position = values[2];
    __pyx_v_name = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, __pyx_nargs); __PYX_ERR(0, 59, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateError.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_13TemplateError___init__(__pyx_self, __pyx_v_self, __pyx_v_message, __pyx_v_position, __pyx_v_name);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_13TemplateError___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_message, PyObject *__pyx_v_position, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "Cython/Tempita/_tempita.py":60
 * 
 *     def __init__(self, message, position, name=None):
 *         Exception.__init__(self, message)             # <<<<<<<<<<<<<<
 *         self.position = position
 *         self.name = name
*/
  __pyx_t_2 = ((PyObject *)(((PyTypeObject*)PyExc_Exception)));
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_self, __pyx_v_message};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_init, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":61
 *     def __init__(self, message, position, name=None):
 *         Exception.__init__(self, message)
 *         self.position = position             # <<<<<<<<<<<<<<
 *         self.name = name
 * 
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_position, __pyx_v_position) < (0)) __PYX_ERR(0, 61, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":62
 *         Exception.__init__(self, message)
 *         self.position = position
 *         self.name = name             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name, __pyx_v_name) < (0)) __PYX_ERR(0, 62, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":59
 *     """
 * 
 *     def __init__(self, message, position, name=None):             # <<<<<<<<<<<<<<
 *         Exception.__init__(self, message)
 *         self.position = position
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateError.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":64
 *         self.name = name
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         msg = ' '.join(self.args)
 *         if self.position:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_13TemplateError_3__str__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_13TemplateError_3__str__ = {"__str__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_13TemplateError_3__str__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_13TemplateError_3__str__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_13TemplateError_2__str__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_13TemplateError_2__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_v_msg = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6[5];
  Py_ssize_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "Cython/Tempita/_tempita.py":65
 * 
 *     def __str__(self):
 *         msg = ' '.join(self.args)             # <<<<<<<<<<<<<<
 *         if self.position:
 *             msg = '%s at line %s column %s' % (
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u_, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_msg = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":66
 *     def __str__(self):
 *         msg = ' '.join(self.args)
 *         if self.position:             # <<<<<<<<<<<<<<
 *             msg = '%s at line %s column %s' % (
 *                 msg, self.position[0], self.position[1])
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_position); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 66, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":68
 *         if self.position:
 *             msg = '%s at line %s column %s' % (
 *                 msg, self.position[0], self.position[1])             # <<<<<<<<<<<<<<
 *         if self.name:
 *             msg += ' in %s' % self.name
*/
    __pyx_t_2 = __Pyx_PyUnicode_Unicode(__pyx_v_msg); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_position); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_position); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_4, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_5), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 68, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_6[0] = __pyx_t_2;
    __pyx_t_6[1] = __pyx_mstate_global->__pyx_kp_u_at_line;
    __pyx_t_6[2] = __pyx_t_1;
    __pyx_t_6[3] = __pyx_mstate_global->__pyx_kp_u_column;
    __pyx_t_6[4] = __pyx_t_4;

    /* "Cython/Tempita/_tempita.py":67
 *         msg = ' '.join(self.args)
 *         if self.position:
 *             msg = '%s at line %s column %s' % (             # <<<<<<<<<<<<<<
 *                 msg, self.position[0], self.position[1])
 *         if self.name:
*/
    __pyx_t_7 = 17;
    #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
    __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6[0]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6[2]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6[4]);
    #endif
    __pyx_t_8 = 0;
    #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
    __pyx_t_8 |= __Pyx_PyUnicode_KIND_04(__pyx_t_6[0]) | __Pyx_PyUnicode_KIND_04(__pyx_t_6[2]) | __Pyx_PyUnicode_KIND_04(__pyx_t_6[4]);
    #endif
    __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_6, 5, __pyx_t_7, __pyx_t_8);
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 67, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_msg, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "Cython/Tempita/_tempita.py":66
 *     def __str__(self):
 *         msg = ' '.join(self.args)
 *         if self.position:             # <<<<<<<<<<<<<<
 *             msg = '%s at line %s column %s' % (
 *                 msg, self.position[0], self.position[1])
*/
  }

  /* "Cython/Tempita/_tempita.py":69
 *             msg = '%s at line %s column %s' % (
 *                 msg, self.position[0], self.position[1])
 *         if self.name:             # <<<<<<<<<<<<<<
 *             msg += ' in %s' % self.name
 *         return msg
*/
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":70
 *                 msg, self.position[0], self.position[1])
 *         if self.name:
 *             msg += ' in %s' % self.name             # <<<<<<<<<<<<<<
 *         return msg
 * 
*/
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_in_s, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlaceSafe(__pyx_v_msg, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 70, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_msg, ((PyObject*)__pyx_t_5));
    __pyx_t_5 = 0;

    /* "Cython/Tempita/_tempita.py":69
 *             msg = '%s at line %s column %s' % (
 *                 msg, self.position[0], self.position[1])
 *         if self.name:             # <<<<<<<<<<<<<<
 *             msg += ' in %s' % self.name
 *         return msg
*/
  }

  /* "Cython/Tempita/_tempita.py":71
 *         if self.name:
 *             msg += ' in %s' % self.name
 *         return msg             # <<<<<<<<<<<<<<
 * 
 * 
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_v_msg);
      __pyx_r = __pyx_v_msg;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":64
 *         self.name = name
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         msg = ' '.join(self.args)
 *         if self.position:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateError.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_msg);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":82
 * 
 * 
 * def get_file_template(name, from_template):             # <<<<<<<<<<<<<<
 *     path = os.path.join(os.path.dirname(from_template.name), name)
 *     return from_template.__class__.from_filename(
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_3get_file_template(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_3get_file_template = {"get_file_template", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_3get_file_template, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_3get_file_template(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_from_template = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_file_template (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_from_template,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 82, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 82, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 82, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_file_template", 0) < (0)) __PYX_ERR(0, 82, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("get_file_template", 1, 2, 2, i); __PYX_ERR(0, 82, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 82, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 82, __pyx_L3_error)
    }
    __pyx_v_name = values[0];
    __pyx_v_from_template = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("get_file_template", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 82, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.get_file_template", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_2get_file_template(__pyx_self, __pyx_v_name, __pyx_v_from_template);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_2get_file_template(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name, PyObject *__pyx_v_from_template) {
  PyObject *__pyx_v_path = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_file_template", 0);

  /* "Cython/Tempita/_tempita.py":83
 * 
 * def get_file_template(name, from_template):
 *     path = os.path.join(os.path.dirname(from_template.name), name)             # <<<<<<<<<<<<<<
 *     return from_template.__class__.from_filename(
 *         path, namespace=from_template.namespace,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __pyx_t_4;
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_os); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_path); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_5 = __pyx_t_7;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_from_template, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
    __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_dirname, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 83, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  }
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_t_3, __pyx_v_name};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_join, __pyx_callargs+__pyx_t_8, (3-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_path = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":84
 * def get_file_template(name, from_template):
 *     path = os.path.join(os.path.dirname(from_template.name), name)
 *     return from_template.__class__.from_filename(             # <<<<<<<<<<<<<<
 *         path, namespace=from_template.namespace,
 *         get_template=from_template.get_template)
*/
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_from_template, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_4);

  /* "Cython/Tempita/_tempita.py":85
 *     path = os.path.join(os.path.dirname(from_template.name), name)
 *     return from_template.__class__.from_filename(
 *         path, namespace=from_template.namespace,             # <<<<<<<<<<<<<<
 *         get_template=from_template.get_template)
 * 
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_from_template, __pyx_mstate_global->__pyx_n_u_namespace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "Cython/Tempita/_tempita.py":86
 *     return from_template.__class__.from_filename(
 *         path, namespace=from_template.namespace,
 *         get_template=from_template.get_template)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_from_template, __pyx_mstate_global->__pyx_n_u_get_template); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 0;
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_path, __pyx_t_2, __pyx_t_7};
    #if CYTHON_VECTORCALL
    __pyx_t_6 = __pyx_mstate_global->__pyx_tuple[0];
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L1_error)
    __Pyx_INCREF(__pyx_t_6);
    #else
    {
      PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_namespace, __pyx_mstate_global->__pyx_n_u_get_template};
      __pyx_t_6 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 84, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    #endif
    __pyx_t_1 = __Pyx_Object_VectorcallMethodKwds((PyObject*)__pyx_mstate_global->__pyx_n_u_from_filename, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_1;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":82
 * 
 * 
 * def get_file_template(name, from_template):             # <<<<<<<<<<<<<<
 *     path = os.path.join(os.path.dirname(from_template.name), name)
 *     return from_template.__class__.from_filename(
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("Cython.Tempita._tempita.get_file_template", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_path);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":100
 *     default_inherit = None
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,             # <<<<<<<<<<<<<<
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_content = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_namespace = 0;
  PyObject *__pyx_v_stacklevel = 0;
  PyObject *__pyx_v_get_template = 0;
  PyObject *__pyx_v_default_inherit = 0;
  PyObject *__pyx_v_line_offset = 0;
  PyObject *__pyx_v_delimiters = 0;
  PyObject *__pyx_v_delimeters = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_content,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_namespace,&__pyx_mstate_global->__pyx_n_u_stacklevel,&__pyx_mstate_global->__pyx_n_u_get_template,&__pyx_mstate_global->__pyx_n_u_default_inherit,&__pyx_mstate_global->__pyx_n_u_line_offset,&__pyx_mstate_global->__pyx_n_u_delimiters,&__pyx_mstate_global->__pyx_n_u_delimeters,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 100, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case 10:
        values[9] = __Pyx_ArgRef_FASTCALL(__pyx_args, 9);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[9])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 100, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "Cython/Tempita/_tempita.py":101
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,
 *                  get_template=None, default_inherit=None, line_offset=0,             # <<<<<<<<<<<<<<
 *                  delimiters=None, delimeters=None):
 *         self.content = content
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_0)));

      /* "Cython/Tempita/_tempita.py":102
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):             # <<<<<<<<<<<<<<
 *         self.content = content
 * 
*/
      if (!values[8]) values[8] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[9]) values[9] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 10, i); __PYX_ERR(0, 100, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case 10:
        values[9] = __Pyx_ArgRef_FASTCALL(__pyx_args, 9);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[9])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 100, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 100, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "Cython/Tempita/_tempita.py":100
 *     default_inherit = None
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,             # <<<<<<<<<<<<<<
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "Cython/Tempita/_tempita.py":101
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,
 *                  get_template=None, default_inherit=None, line_offset=0,             # <<<<<<<<<<<<<<
 *                  delimiters=None, delimeters=None):
 *         self.content = content
*/
      if (!values[5]) values[5] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[6]) values[6] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_0)));

      /* "Cython/Tempita/_tempita.py":102
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):             # <<<<<<<<<<<<<<
 *         self.content = content
 * 
*/
      if (!values[8]) values[8] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[9]) values[9] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_self = values[0];
    __pyx_v_content = values[1];
    __pyx_v_name = values[2];
    __pyx_v_namespace = values[3];
    __pyx_v_stacklevel = values[4];
    __pyx_v_get_template = values[5];
    __pyx_v_default_inherit = values[6];
    __pyx_v_line_offset = values[7];
    __pyx_v_delimiters = values[8];
    __pyx_v_delimeters = values[9];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 10, __pyx_nargs); __PYX_ERR(0, 100, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template___init__(__pyx_self, __pyx_v_self, __pyx_v_content, __pyx_v_name, __pyx_v_namespace, __pyx_v_stacklevel, __pyx_v_get_template, __pyx_v_default_inherit, __pyx_v_line_offset, __pyx_v_delimiters, __pyx_v_delimeters);

  /* "Cython/Tempita/_tempita.py":100
 *     default_inherit = None
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,             # <<<<<<<<<<<<<<
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_content, PyObject *__pyx_v_name, PyObject *__pyx_v_namespace, PyObject *__pyx_v_stacklevel, PyObject *__pyx_v_get_template, PyObject *__pyx_v_default_inherit, PyObject *__pyx_v_line_offset, PyObject *__pyx_v_delimiters, PyObject *__pyx_v_delimeters) {
  PyObject *__pyx_v_warnings = NULL;
  PyObject *__pyx_v_caller = NULL;
  PyObject *__pyx_v_globals = NULL;
  PyObject *__pyx_v_lineno = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_INCREF(__pyx_v_namespace);
  __Pyx_INCREF(__pyx_v_delimiters);

  /* "Cython/Tempita/_tempita.py":103
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):
 *         self.content = content             # <<<<<<<<<<<<<<
 * 
 *         # set delimiters
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_content, __pyx_v_content) < (0)) __PYX_ERR(0, 103, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":106
 * 
 *         # set delimiters
 *         if delimeters:             # <<<<<<<<<<<<<<
 *             import warnings
 *             warnings.warn(
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_delimeters); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 106, __pyx_L1_error)
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":107
 *         # set delimiters
 *         if delimeters:
 *             import warnings             # <<<<<<<<<<<<<<
 *             warnings.warn(
 *                 "'delimeters' kwarg is being deprecated in favor of correctly"
*/
    __pyx_t_3 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_warnings, 0, 0, NULL, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error)
    __pyx_t_2 = __pyx_t_3;
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_warnings = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":108
 *         if delimeters:
 *             import warnings
 *             warnings.warn(             # <<<<<<<<<<<<<<
 *                 "'delimeters' kwarg is being deprecated in favor of correctly"
 *                 " spelled 'delimiters'. Please adjust your code.",
*/
    __pyx_t_4 = __pyx_v_warnings;
    __Pyx_INCREF(__pyx_t_4);

    /* "Cython/Tempita/_tempita.py":111
 *                 "'delimeters' kwarg is being deprecated in favor of correctly"
 *                 " spelled 'delimiters'. Please adjust your code.",
 *                 DeprecationWarning             # <<<<<<<<<<<<<<
 *             )
 *             if delimiters is None:
*/
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_delimeters_kwarg_is_being_depre, ((PyObject *)(((PyTypeObject*)PyExc_DeprecationWarning)))};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_warn, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":113
 *                 DeprecationWarning
 *             )
 *             if delimiters is None:             # <<<<<<<<<<<<<<
 *                 delimiters = delimeters
 *         if delimiters is None:
*/
    __pyx_t_1 = (__pyx_v_delimiters == Py_None);
    if (__pyx_t_1) {


      /* "Cython/Tempita/_tempita.py":114
 *             )
 *             if delimiters is None:
 *                 delimiters = delimeters             # <<<<<<<<<<<<<<
 *         if delimiters is None:
 *             delimiters = (self.default_namespace['start_braces'],
*/
      __Pyx_INCREF(__pyx_v_delimeters);
      __Pyx_DECREF_SET(__pyx_v_delimiters, __pyx_v_delimeters);

      /* "Cython/Tempita/_tempita.py":113
 *                 DeprecationWarning
 *             )
 *             if delimiters is None:             # <<<<<<<<<<<<<<
 *                 delimiters = delimeters
 *         if delimiters is None:
*/
    }

    /* "Cython/Tempita/_tempita.py":106
 * 
 *         # set delimiters
 *         if delimeters:             # <<<<<<<<<<<<<<
 *             import warnings
 *             warnings.warn(
*/
  }

  /* "Cython/Tempita/_tempita.py":115
 *             if delimiters is None:
 *                 delimiters = delimeters
 *         if delimiters is None:             # <<<<<<<<<<<<<<
 *             delimiters = (self.default_namespace['start_braces'],
 *                           self.default_namespace['end_braces'])
*/
  __pyx_t_1 = (__pyx_v_delimiters == Py_None);
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":116
 *                 delimiters = delimeters
 *         if delimiters is None:
 *             delimiters = (self.default_namespace['start_braces'],             # <<<<<<<<<<<<<<
 *                           self.default_namespace['end_braces'])
 *         else:
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_start_braces); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":117
 *         if delimiters is None:
 *             delimiters = (self.default_namespace['start_braces'],
 *                           self.default_namespace['end_braces'])             # <<<<<<<<<<<<<<
 *         else:
 *             #assert len(delimiters) == 2 and all([isinstance(delimiter, str)
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_end_braces); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":116
 *                 delimiters = delimeters
 *         if delimiters is None:
 *             delimiters = (self.default_namespace['start_braces'],             # <<<<<<<<<<<<<<
 *                           self.default_namespace['end_braces'])
 *         else:
*/
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_4);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 116, __pyx_L1_error);
    __Pyx_GIVEREF(__pyx_t_6);
    if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_6) != (0)) __PYX_ERR(0, 116, __pyx_L1_error);
    __pyx_t_4 = 0;
    __pyx_t_6 = 0;
    __Pyx_DECREF_SET(__pyx_v_delimiters, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":115
 *             if delimiters is None:
 *                 delimiters = delimeters
 *         if delimiters is None:             # <<<<<<<<<<<<<<
 *             delimiters = (self.default_namespace['start_braces'],
 *                           self.default_namespace['end_braces'])
*/
    goto __pyx_L5;
  }

  /* "Cython/Tempita/_tempita.py":121
 *             #assert len(delimiters) == 2 and all([isinstance(delimiter, str)
 *             #                                     for delimiter in delimiters])
 *             self.default_namespace = self.__class__.default_namespace.copy()             # <<<<<<<<<<<<<<
 *             self.default_namespace['start_braces'] = delimiters[0]
 *             self.default_namespace['end_braces'] = delimiters[1]
*/
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __pyx_t_7;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_copy, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_namespace, __pyx_t_2) < (0)) __PYX_ERR(0, 121, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":122
 *             #                                     for delimiter in delimiters])
 *             self.default_namespace = self.__class__.default_namespace.copy()
 *             self.default_namespace['start_braces'] = delimiters[0]             # <<<<<<<<<<<<<<
 *             self.default_namespace['end_braces'] = delimiters[1]
 *         self.delimiters = self.delimeters = delimiters  # Keep a legacy read-only copy, but don't use it.
*/
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_delimiters, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 122, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (unlikely((PyObject_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_start_braces, __pyx_t_2) < 0))) __PYX_ERR(0, 122, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":123
 *             self.default_namespace = self.__class__.default_namespace.copy()
 *             self.default_namespace['start_braces'] = delimiters[0]
 *             self.default_namespace['end_braces'] = delimiters[1]             # <<<<<<<<<<<<<<
 *         self.delimiters = self.delimeters = delimiters  # Keep a legacy read-only copy, but don't use it.
 * 
*/
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_delimiters, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    if (unlikely((PyObject_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_end_braces, __pyx_t_2) < 0))) __PYX_ERR(0, 123, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_L5:;

  /* "Cython/Tempita/_tempita.py":124
 *             self.default_namespace['start_braces'] = delimiters[0]
 *             self.default_namespace['end_braces'] = delimiters[1]
 *         self.delimiters = self.delimeters = delimiters  # Keep a legacy read-only copy, but don't use it.             # <<<<<<<<<<<<<<
 * 
 *         self._unicode = isinstance(content, str)
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_delimiters, __pyx_v_delimiters) < (0)) __PYX_ERR(0, 124, __pyx_L1_error)
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_delimeters, __pyx_v_delimiters) < (0)) __PYX_ERR(0, 124, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":126
 *         self.delimiters = self.delimeters = delimiters  # Keep a legacy read-only copy, but don't use it.
 * 
 *         self._unicode = isinstance(content, str)             # <<<<<<<<<<<<<<
 *         if name is None and stacklevel is not None:
 *             try:
*/
  __pyx_t_1 = PyUnicode_Check(__pyx_v_content); 
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_unicode, __pyx_t_2) < (0)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":127
 * 
 *         self._unicode = isinstance(content, str)
 *         if name is None and stacklevel is not None:             # <<<<<<<<<<<<<<
 *             try:
 *                 caller = sys._getframe(stacklevel)
*/
  __pyx_t_8 = (__pyx_v_name == Py_None);
  if (__pyx_t_8) {

  } else {

    __pyx_t_1 = __pyx_t_8;

    goto __pyx_L7_bool_binop_done;
  }
  __pyx_t_8 = (__pyx_v_stacklevel != Py_None);

  __pyx_t_1 = __pyx_t_8;

  __pyx_L7_bool_binop_done:;
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":128
 *         self._unicode = isinstance(content, str)
 *         if name is None and stacklevel is not None:
 *             try:             # <<<<<<<<<<<<<<
 *                 caller = sys._getframe(stacklevel)
 *             except ValueError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_9, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "Cython/Tempita/_tempita.py":129
 *         if name is None and stacklevel is not None:
 *             try:
 *                 caller = sys._getframe(stacklevel)             # <<<<<<<<<<<<<<
 *             except ValueError:
 *                 pass
*/
        __pyx_t_7 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_sys); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 129, __pyx_L9_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_getframe); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 129, __pyx_L9_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_5 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
          assert(__pyx_t_7);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
          __pyx_t_5 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_stacklevel};
          __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L9_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        __pyx_v_caller = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "Cython/Tempita/_tempita.py":128
 *         self._unicode = isinstance(content, str)
 *         if name is None and stacklevel is not None:
 *             try:             # <<<<<<<<<<<<<<
 *                 caller = sys._getframe(stacklevel)
 *             except ValueError:
*/
      }

      /* "Cython/Tempita/_tempita.py":133
 *                 pass
 *             else:
 *                 globals = caller.f_globals             # <<<<<<<<<<<<<<
 *                 lineno = caller.f_lineno
 *                 if '__file__' in globals:
*/
      /*else:*/ {
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_caller, __pyx_mstate_global->__pyx_n_u_f_globals); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L11_except_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_v_globals = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "Cython/Tempita/_tempita.py":134
 *             else:
 *                 globals = caller.f_globals
 *                 lineno = caller.f_lineno             # <<<<<<<<<<<<<<
 *                 if '__file__' in globals:
 *                     name = globals['__file__']
*/
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_caller, __pyx_mstate_global->__pyx_n_u_f_lineno); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L11_except_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_v_lineno = __pyx_t_2;
        __pyx_t_2 = 0;

        /* "Cython/Tempita/_tempita.py":135
 *                 globals = caller.f_globals
 *                 lineno = caller.f_lineno
 *                 if '__file__' in globals:             # <<<<<<<<<<<<<<
 *                     name = globals['__file__']
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):
*/
        __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_file, __pyx_v_globals, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 135, __pyx_L11_except_error)
        if (__pyx_t_1) {


          /* "Cython/Tempita/_tempita.py":136
 *                 lineno = caller.f_lineno
 *                 if '__file__' in globals:
 *                     name = globals['__file__']             # <<<<<<<<<<<<<<
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):
 *                         name = name[:-1]
*/
          __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_globals, __pyx_mstate_global->__pyx_n_u_file); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L11_except_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "Cython/Tempita/_tempita.py":137
 *                 if '__file__' in globals:
 *                     name = globals['__file__']
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):             # <<<<<<<<<<<<<<
 *                         name = name[:-1]
 *                 elif '__name__' in globals:
*/
          __pyx_t_4 = __pyx_v_name;
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_5 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pyc};
            __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_endswith, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L11_except_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 137, __pyx_L11_except_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (!__pyx_t_8) {

          } else {

            __pyx_t_1 = __pyx_t_8;

            goto __pyx_L17_bool_binop_done;
          }
          __pyx_t_4 = __pyx_v_name;
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_5 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pyo};
            __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_endswith, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L11_except_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 137, __pyx_L11_except_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          __pyx_t_1 = __pyx_t_8;

          __pyx_L17_bool_binop_done:;
          if (__pyx_t_1) {


            /* "Cython/Tempita/_tempita.py":138
 *                     name = globals['__file__']
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):
 *                         name = name[:-1]             # <<<<<<<<<<<<<<
 *                 elif '__name__' in globals:
 *                     name = globals['__name__']
*/
            __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_name, 0, -1L, NULL, NULL, &__pyx_mstate_global->__pyx_slice[0], 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 138, __pyx_L11_except_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_2);
            __pyx_t_2 = 0;

            /* "Cython/Tempita/_tempita.py":137
 *                 if '__file__' in globals:
 *                     name = globals['__file__']
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):             # <<<<<<<<<<<<<<
 *                         name = name[:-1]
 *                 elif '__name__' in globals:
*/
          }

          /* "Cython/Tempita/_tempita.py":135
 *                 globals = caller.f_globals
 *                 lineno = caller.f_lineno
 *                 if '__file__' in globals:             # <<<<<<<<<<<<<<
 *                     name = globals['__file__']
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):
*/
          goto __pyx_L15;
        }

        /* "Cython/Tempita/_tempita.py":139
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):
 *                         name = name[:-1]
 *                 elif '__name__' in globals:             # <<<<<<<<<<<<<<
 *                     name = globals['__name__']
 *                 else:
*/
        __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_name_2, __pyx_v_globals, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 139, __pyx_L11_except_error)
        if (__pyx_t_1) {


          /* "Cython/Tempita/_tempita.py":140
 *                         name = name[:-1]
 *                 elif '__name__' in globals:
 *                     name = globals['__name__']             # <<<<<<<<<<<<<<
 *                 else:
 *                     name = '<string>'
*/
          __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_globals, __pyx_mstate_global->__pyx_n_u_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L11_except_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "Cython/Tempita/_tempita.py":139
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):
 *                         name = name[:-1]
 *                 elif '__name__' in globals:             # <<<<<<<<<<<<<<
 *                     name = globals['__name__']
 *                 else:
*/
          goto __pyx_L15;
        }

        /* "Cython/Tempita/_tempita.py":142
 *                     name = globals['__name__']
 *                 else:
 *                     name = '<string>'             # <<<<<<<<<<<<<<
 *                 if lineno:
 *                     name += ':%s' % lineno
*/
        /*else*/ {
          __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_string);
          __Pyx_DECREF_SET(__pyx_v_name, __pyx_mstate_global->__pyx_kp_u_string);
        }
        __pyx_L15:;

        /* "Cython/Tempita/_tempita.py":143
 *                 else:
 *                     name = '<string>'
 *                 if lineno:             # <<<<<<<<<<<<<<
 *                     name += ':%s' % lineno
 *         self.name = name
*/
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_lineno); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 143, __pyx_L11_except_error)
        if (__pyx_t_1) {


          /* "Cython/Tempita/_tempita.py":144
 *                     name = '<string>'
 *                 if lineno:
 *                     name += ':%s' % lineno             # <<<<<<<<<<<<<<
 *         self.name = name
 *         self._parsed = parse(content, name=name, line_offset=line_offset, delimiters=self.delimiters)
*/
          __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_s, __pyx_v_lineno); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L11_except_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_name, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L11_except_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_4);
          __pyx_t_4 = 0;

          /* "Cython/Tempita/_tempita.py":143
 *                 else:
 *                     name = '<string>'
 *                 if lineno:             # <<<<<<<<<<<<<<
 *                     name += ':%s' % lineno
 *         self.name = name
*/
        }
      }
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L14_try_end;
      __pyx_L9_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "Cython/Tempita/_tempita.py":130
 *             try:
 *                 caller = sys._getframe(stacklevel)
 *             except ValueError:             # <<<<<<<<<<<<<<
 *                 pass
 *             else:
*/
      __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_ValueError))));
      if (__pyx_t_11) {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L10_exception_handled;
      }
      goto __pyx_L11_except_error;

      /* "Cython/Tempita/_tempita.py":128
 *         self._unicode = isinstance(content, str)
 *         if name is None and stacklevel is not None:
 *             try:             # <<<<<<<<<<<<<<
 *                 caller = sys._getframe(stacklevel)
 *             except ValueError:
*/
      __pyx_L11_except_error:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_9, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L10_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_9, __pyx_t_10);
      __pyx_L14_try_end:;
    }

    /* "Cython/Tempita/_tempita.py":127
 * 
 *         self._unicode = isinstance(content, str)
 *         if name is None and stacklevel is not None:             # <<<<<<<<<<<<<<
 *             try:
 *                 caller = sys._getframe(stacklevel)
*/
  }

  /* "Cython/Tempita/_tempita.py":145
 *                 if lineno:
 *                     name += ':%s' % lineno
 *         self.name = name             # <<<<<<<<<<<<<<
 *         self._parsed = parse(content, name=name, line_offset=line_offset, delimiters=self.delimiters)
 *         if namespace is None:
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name, __pyx_v_name) < (0)) __PYX_ERR(0, 145, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":146
 *                     name += ':%s' % lineno
 *         self.name = name
 *         self._parsed = parse(content, name=name, line_offset=line_offset, delimiters=self.delimiters)             # <<<<<<<<<<<<<<
 *         if namespace is None:
 *             namespace = {}
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_parse); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_delimiters); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_2, __pyx_v_content, __pyx_v_name, __pyx_v_line_offset, __pyx_t_6};
    #if CYTHON_VECTORCALL
    __pyx_t_12 = __pyx_mstate_global->__pyx_tuple[1];
    if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 146, __pyx_L1_error)
    __Pyx_INCREF(__pyx_t_12);
    #else
    {
      PyObject *__pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_line_offset, __pyx_mstate_global->__pyx_n_u_delimiters};
      __pyx_t_12 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 3);
      if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 146, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_12);
    }
    #endif
    __pyx_t_4 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_12);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_parsed, __pyx_t_4) < (0)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "Cython/Tempita/_tempita.py":147
 *         self.name = name
 *         self._parsed = parse(content, name=name, line_offset=line_offset, delimiters=self.delimiters)
 *         if namespace is None:             # <<<<<<<<<<<<<<
 *             namespace = {}
 *         self.namespace = namespace
*/
  __pyx_t_1 = (__pyx_v_namespace == Py_None);
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":148
 *         self._parsed = parse(content, name=name, line_offset=line_offset, delimiters=self.delimiters)
 *         if namespace is None:
 *             namespace = {}             # <<<<<<<<<<<<<<
 *         self.namespace = namespace
 *         self.get_template = get_template
*/
    __pyx_t_4 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 148, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_namespace, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":147
 *         self.name = name
 *         self._parsed = parse(content, name=name, line_offset=line_offset, delimiters=self.delimiters)
 *         if namespace is None:             # <<<<<<<<<<<<<<
 *             namespace = {}
 *         self.namespace = namespace
*/
  }

  /* "Cython/Tempita/_tempita.py":149
 *         if namespace is None:
 *             namespace = {}
 *         self.namespace = namespace             # <<<<<<<<<<<<<<
 *         self.get_template = get_template
 *         if default_inherit is not None:
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_namespace, __pyx_v_namespace) < (0)) __PYX_ERR(0, 149, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":150
 *             namespace = {}
 *         self.namespace = namespace
 *         self.get_template = get_template             # <<<<<<<<<<<<<<
 *         if default_inherit is not None:
 *             self.default_inherit = default_inherit
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_get_template, __pyx_v_get_template) < (0)) __PYX_ERR(0, 150, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":151
 *         self.namespace = namespace
 *         self.get_template = get_template
 *         if default_inherit is not None:             # <<<<<<<<<<<<<<
 *             self.default_inherit = default_inherit
 * 
*/
  __pyx_t_1 = (__pyx_v_default_inherit != Py_None);
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":152
 *         self.get_template = get_template
 *         if default_inherit is not None:
 *             self.default_inherit = default_inherit             # <<<<<<<<<<<<<<
 * 
 *     @classmethod
*/
    if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_inherit, __pyx_v_default_inherit) < (0)) __PYX_ERR(0, 152, __pyx_L1_error)

    /* "Cython/Tempita/_tempita.py":151
 *         self.namespace = namespace
 *         self.get_template = get_template
 *         if default_inherit is not None:             # <<<<<<<<<<<<<<
 *             self.default_inherit = default_inherit
 * 
*/
  }

  /* "Cython/Tempita/_tempita.py":100
 *     default_inherit = None
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,             # <<<<<<<<<<<<<<
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_warnings);
  __Pyx_XDECREF(__pyx_v_caller);
  __Pyx_XDECREF(__pyx_v_globals);
  __Pyx_XDECREF(__pyx_v_lineno);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_namespace);
  __Pyx_XDECREF(__pyx_v_delimiters);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":154
 *             self.default_inherit = default_inherit
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
*/

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_36__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__defaults__", 0);

  /* "Cython/Tempita/_tempita.py":156
 *     @classmethod
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):             # <<<<<<<<<<<<<<
 *         with open(filename, 'rb') as f:
 *             c = f.read()
*/
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, Py_None) != (0)) __PYX_ERR(0, 154, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 154, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None) != (0)) __PYX_ERR(0, 154, __pyx_L1_error);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(0, 154, __pyx_L1_error);

  /* "Cython/Tempita/_tempita.py":154
 *             self.default_inherit = default_inherit
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
*/
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 154, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 154, __pyx_L1_error);
  __pyx_t_1 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_2;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("Cython.Tempita._tempita.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_3from_filename(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_3from_filename = {"from_filename", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_3from_filename, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_3from_filename(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_cls = 0;
  PyObject *__pyx_v_filename = 0;
  PyObject *__pyx_v_namespace = 0;
  PyObject *__pyx_v_encoding = 0;
  PyObject *__pyx_v_default_inherit = 0;
  PyObject *__pyx_v_get_template = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_filename (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cls,&__pyx_mstate_global->__pyx_n_u_filename,&__pyx_mstate_global->__pyx_n_u_namespace,&__pyx_mstate_global->__pyx_n_u_encoding,&__pyx_mstate_global->__pyx_n_u_default_inherit,&__pyx_mstate_global->__pyx_n_u_get_template,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 154, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "from_filename", 0) < (0)) __PYX_ERR(0, 154, __pyx_L3_error)

      /* "Cython/Tempita/_tempita.py":155
 * 
 *     @classmethod
 *     def from_filename(cls, filename, namespace=None, encoding=None,             # <<<<<<<<<<<<<<
 *                       default_inherit=None, get_template=get_file_template):
 *         with open(filename, 'rb') as f:
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "Cython/Tempita/_tempita.py":156
 *     @classmethod
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):             # <<<<<<<<<<<<<<
 *         with open(filename, 'rb') as f:
 *             c = f.read()
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[5]) values[5] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("from_filename", 0, 2, 6, i); __PYX_ERR(0, 154, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 154, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 154, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }

      /* "Cython/Tempita/_tempita.py":155
 * 
 *     @classmethod
 *     def from_filename(cls, filename, namespace=None, encoding=None,             # <<<<<<<<<<<<<<
 *                       default_inherit=None, get_template=get_file_template):
 *         with open(filename, 'rb') as f:
*/
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));

      /* "Cython/Tempita/_tempita.py":156
 *     @classmethod
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):             # <<<<<<<<<<<<<<
 *         with open(filename, 'rb') as f:
 *             c = f.read()
*/
      if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));
      if (!values[5]) values[5] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
    }
    __pyx_v_cls = values[0];
    __pyx_v_filename = values[1];
    __pyx_v_namespace = values[2];
    __pyx_v_encoding = values[3];
    __pyx_v_default_inherit = values[4];
    __pyx_v_get_template = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_filename", 0, 2, 6, __pyx_nargs); __PYX_ERR(0, 154, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template.from_filename", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_2from_filename(__pyx_self, __pyx_v_cls, __pyx_v_filename, __pyx_v_namespace, __pyx_v_encoding, __pyx_v_default_inherit, __pyx_v_get_template);

  /* "Cython/Tempita/_tempita.py":154
 *             self.default_inherit = default_inherit
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_2from_filename(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cls, PyObject *__pyx_v_filename, PyObject *__pyx_v_namespace, PyObject *__pyx_v_encoding, PyObject *__pyx_v_default_inherit, PyObject *__pyx_v_get_template) {
  PyObject *__pyx_v_f = NULL;
  PyObject *__pyx_v_c = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("from_filename", 0);

  /* "Cython/Tempita/_tempita.py":157
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
 *         with open(filename, 'rb') as f:             # <<<<<<<<<<<<<<
 *             c = f.read()
 *         if encoding:
*/
  /*with:*/ {
    __pyx_t_2 = NULL;
    __pyx_t_3 = 1;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_filename, __pyx_mstate_global->__pyx_n_u_rb};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 157, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_4 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_exit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 157, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    __pyx_t_6 = __Pyx_PyObject_LookupSpecial(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_enter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 157, __pyx_L3_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_3 = 1;
    #if CYTHON_UNPACK_METHODS
    if (likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
      assert(__pyx_t_5);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
      __pyx_t_3 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __pyx_t_6 = __pyx_t_2;
    __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    /*try:*/ {
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_7);
        __Pyx_XGOTREF(__pyx_t_8);
        __Pyx_XGOTREF(__pyx_t_9);
        /*try:*/ {
          __pyx_v_f = __pyx_t_6;
          __pyx_t_6 = 0;

          /* "Cython/Tempita/_tempita.py":158
 *                       default_inherit=None, get_template=get_file_template):
 *         with open(filename, 'rb') as f:
 *             c = f.read()             # <<<<<<<<<<<<<<
 *         if encoding:
 *             c = c.decode(encoding)
*/
          __pyx_t_1 = __pyx_v_f;
          __Pyx_INCREF(__pyx_t_1);
          __pyx_t_3 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
            __pyx_t_6 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 158, __pyx_L7_error)
            __Pyx_GOTREF(__pyx_t_6);
          }
          __pyx_v_c = __pyx_t_6;
          __pyx_t_6 = 0;

          /* "Cython/Tempita/_tempita.py":157
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
 *         with open(filename, 'rb') as f:             # <<<<<<<<<<<<<<
 *             c = f.read()
 *         if encoding:
*/
        }
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L12_try_end;
        __pyx_L7_error:;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        /*except:*/ {
          __Pyx_AddTraceback("Cython.Tempita._tempita.Template.from_filename", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_1, &__pyx_t_2) < 0) __PYX_ERR(0, 157, __pyx_L9_except_error)
          __Pyx_XGOTREF(__pyx_t_6);
          __Pyx_XGOTREF(__pyx_t_1);
          __Pyx_XGOTREF(__pyx_t_2);
          {
            PyObject* __pyx_temp[3] = {__pyx_t_6, __pyx_t_1, __pyx_t_2};
            __pyx_t_5 = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 157, __pyx_L9_except_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 157, __pyx_L9_except_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_10);
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (__pyx_t_11 < (0)) __PYX_ERR(0, 157, __pyx_L9_except_error)
          __pyx_t_12 = (!__pyx_t_11);


          if (unlikely(__pyx_t_12)) {

            __Pyx_GIVEREF(__pyx_t_6);
            __Pyx_GIVEREF(__pyx_t_1);
            __Pyx_XGIVEREF(__pyx_t_2);
            __Pyx_ErrRestoreWithState(__pyx_t_6, __pyx_t_1, __pyx_t_2);
            __pyx_t_6 = 0;  __pyx_t_1 = 0;  __pyx_t_2 = 0; 
            __PYX_ERR(0, 157, __pyx_L9_except_error)
          }
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          goto __pyx_L8_exception_handled;
        }
        __pyx_L9_except_error:;
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
        goto __pyx_L1_error;
        __pyx_L8_exception_handled:;
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_XGIVEREF(__pyx_t_8);
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
        __pyx_L12_try_end:;
      }
    }
    /*finally:*/ {
      /*normal exit:*/{
        if (__pyx_t_4) {
          __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[2], NULL);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 157, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        }
        goto __pyx_L6;
      }
      __pyx_L6:;
    }
    goto __pyx_L16;
    __pyx_L3_error:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L1_error;
    __pyx_L16:;
  }

  /* "Cython/Tempita/_tempita.py":159
 *         with open(filename, 'rb') as f:
 *             c = f.read()
 *         if encoding:             # <<<<<<<<<<<<<<
 *             c = c.decode(encoding)
 *         return cls(content=c, name=filename, namespace=namespace,
*/
  __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_v_encoding); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 159, __pyx_L1_error)
  if (__pyx_t_12) {


    /* "Cython/Tempita/_tempita.py":160
 *             c = f.read()
 *         if encoding:
 *             c = c.decode(encoding)             # <<<<<<<<<<<<<<
 *         return cls(content=c, name=filename, namespace=namespace,
 *                    default_inherit=default_inherit, get_template=get_template)
*/
    if (unlikely(!__pyx_v_c)) { __Pyx_RaiseUnboundLocalError("c"); __PYX_ERR(0, 160, __pyx_L1_error) }
    __pyx_t_1 = __pyx_v_c;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_v_encoding};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_decode, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 160, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_XDECREF_SET(__pyx_v_c, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":159
 *         with open(filename, 'rb') as f:
 *             c = f.read()
 *         if encoding:             # <<<<<<<<<<<<<<
 *             c = c.decode(encoding)
 *         return cls(content=c, name=filename, namespace=namespace,
*/
  }

  /* "Cython/Tempita/_tempita.py":161
 *         if encoding:
 *             c = c.decode(encoding)
 *         return cls(content=c, name=filename, namespace=namespace,             # <<<<<<<<<<<<<<
 *                    default_inherit=default_inherit, get_template=get_template)
 * 
*/
  __pyx_t_1 = NULL;
  __Pyx_INCREF(__pyx_v_cls);
  __pyx_t_6 = __pyx_v_cls; 
  if (unlikely(!__pyx_v_c)) { __Pyx_RaiseUnboundLocalError("c"); __PYX_ERR(0, 161, __pyx_L1_error) }

  /* "Cython/Tempita/_tempita.py":162
 *             c = c.decode(encoding)
 *         return cls(content=c, name=filename, namespace=namespace,
 *                    default_inherit=default_inherit, get_template=get_template)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_3 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_1);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_3 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_1, __pyx_v_c, __pyx_v_filename, __pyx_v_namespace, __pyx_v_default_inherit, __pyx_v_get_template};
    #if CYTHON_VECTORCALL
    __pyx_t_5 = __pyx_mstate_global->__pyx_tuple[3];
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 161, __pyx_L1_error)
    __Pyx_INCREF(__pyx_t_5);
    #else
    {
      PyObject *__pyx_temp[5] = {__pyx_mstate_global->__pyx_n_u_content, __pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_namespace, __pyx_mstate_global->__pyx_n_u_default_inherit, __pyx_mstate_global->__pyx_n_u_get_template};
      __pyx_t_5 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+1, 5);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 161, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    #endif
    __pyx_t_2 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (__pyx_t_3*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_2;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":154
 *             self.default_inherit = default_inherit
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template.from_filename", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_f);
  __Pyx_XDECREF(__pyx_v_c);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":164
 *                    default_inherit=default_inherit, get_template=get_template)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s name=%r>' % (
 *             self.__class__.__name__,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_5__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_5__repr__ = {"__repr__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_5__repr__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_5__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_4__repr__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_4__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5[7];
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "Cython/Tempita/_tempita.py":166
 *     def __repr__(self):
 *         return '<%s %s name=%r>' % (
 *             self.__class__.__name__,             # <<<<<<<<<<<<<<
 *             hex(id(self))[2:], self.name)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":167
 *         return '<%s %s name=%r>' % (
 *             self.__class__.__name__,
 *             hex(id(self))[2:], self.name)             # <<<<<<<<<<<<<<
 * 
 *     def substitute(self, *args, **kw):
*/
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, __pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyNumber_Hex(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(__pyx_t_3 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
    __PYX_ERR(0, 167, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_PyUnicode_Substring(__pyx_t_3, 2, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_3), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5[0] = __pyx_mstate_global->__pyx_kp_u__3;
  __pyx_t_5[1] = __pyx_t_1;
  __pyx_t_5[2] = __pyx_mstate_global->__pyx_kp_u_;
  __pyx_t_5[3] = __pyx_t_2;
  __pyx_t_5[4] = __pyx_mstate_global->__pyx_kp_u_name_3;
  __pyx_t_5[5] = __pyx_t_4;
  __pyx_t_5[6] = __pyx_mstate_global->__pyx_kp_u__4;

  /* "Cython/Tempita/_tempita.py":165
 * 
 *     def __repr__(self):
 *         return '<%s %s name=%r>' % (             # <<<<<<<<<<<<<<
 *             self.__class__.__name__,
 *             hex(id(self))[2:], self.name)
*/
  __pyx_t_6 = 9;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5[1]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5[3]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5[5]);
  #endif
  __pyx_t_7 = 0;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_7 |= __Pyx_PyUnicode_KIND_04(__pyx_t_5[1]) | __Pyx_PyUnicode_KIND_04(__pyx_t_5[3]) | __Pyx_PyUnicode_KIND_04(__pyx_t_5[5]);
  #endif
  __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_5, 7, __pyx_t_6, __pyx_t_7);
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_3;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":164
 *                    default_inherit=default_inherit, get_template=get_template)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s name=%r>' % (
 *             self.__class__.__name__,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":169
 *             hex(id(self))[2:], self.name)
 * 
 *     def substitute(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         if args:
 *             if kw:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_7substitute(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_7substitute = {"substitute", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_7substitute, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_7substitute(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kw = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("substitute (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_kw = PyDict_New(); if (unlikely(!__pyx_v_kw)) return NULL;
  __Pyx_GOTREF(__pyx_v_kw);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 169, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        default:
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 169, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kw, values, used_pos_args, __pyx_kwds_len, "substitute", 1) < (0)) __PYX_ERR(0, 169, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("substitute", 0, 1, 1, i); __PYX_ERR(0, 169, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs < 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 169, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("substitute", 0, 1, 1, __pyx_nargs); __PYX_ERR(0, 169, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template.substitute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_6substitute(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kw);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_6substitute(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kw) {
  PyObject *__pyx_v_ns = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_defs = NULL;
  PyObject *__pyx_v_inherit = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("substitute", 0);
  __Pyx_INCREF(__pyx_v_kw);

  /* "Cython/Tempita/_tempita.py":170
 * 
 *     def substitute(self, *args, **kw):
 *         if args:             # <<<<<<<<<<<<<<
 *             if kw:
 *                 raise TypeError(
*/
  {
    Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_v_args);
    if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 170, __pyx_L1_error)
    __pyx_t_1 = (__pyx_temp != 0);
  }

  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":171
 *     def substitute(self, *args, **kw):
 *         if args:
 *             if kw:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "You can only give positional *or* keyword arguments")
*/
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_kw); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 171, __pyx_L1_error)
    if (unlikely(__pyx_t_1)) {


      /* "Cython/Tempita/_tempita.py":172
 *         if args:
 *             if kw:
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     "You can only give positional *or* keyword arguments")
 *             if len(args) > 1:
*/
      __pyx_t_3 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_You_can_only_give_positional_or};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(0, 172, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":171
 *     def substitute(self, *args, **kw):
 *         if args:
 *             if kw:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "You can only give positional *or* keyword arguments")
*/
    }

    /* "Cython/Tempita/_tempita.py":174
 *                 raise TypeError(
 *                     "You can only give positional *or* keyword arguments")
 *             if len(args) > 1:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "You can only give one positional argument")
*/
    __pyx_t_5 = __Pyx_PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 174, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_5 > 1);


    if (unlikely(__pyx_t_1)) {


      /* "Cython/Tempita/_tempita.py":175
 *                     "You can only give positional *or* keyword arguments")
 *             if len(args) > 1:
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     "You can only give one positional argument")
 *             if not hasattr(args[0], 'items'):
*/
      __pyx_t_3 = NULL;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_You_can_only_give_one_positional};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 175, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(0, 175, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":174
 *                 raise TypeError(
 *                     "You can only give positional *or* keyword arguments")
 *             if len(args) > 1:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "You can only give one positional argument")
*/
    }

    /* "Cython/Tempita/_tempita.py":177
 *                 raise TypeError(
 *                     "You can only give one positional argument")
 *             if not hasattr(args[0], 'items'):             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "If you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave %r"
*/
    __pyx_t_2 = __Pyx_GetItemInt_Tuple(__pyx_v_args, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_HasAttr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_items); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 177, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_6 = (!__pyx_t_1);


    if (unlikely(__pyx_t_6)) {


      /* "Cython/Tempita/_tempita.py":178
 *                     "You can only give one positional argument")
 *             if not hasattr(args[0], 'items'):
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     "If you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave %r"
 *                     % (args[0],))
*/
      __pyx_t_3 = NULL;

      /* "Cython/Tempita/_tempita.py":180
 *                 raise TypeError(
 *                     "If you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave %r"
 *                     % (args[0],))             # <<<<<<<<<<<<<<
 *             kw = args[0]
 *         ns = kw
*/
      __pyx_t_7 = __Pyx_GetItemInt_Tuple(__pyx_v_args, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 180, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_7), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 180, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "Cython/Tempita/_tempita.py":179
 *             if not hasattr(args[0], 'items'):
 *                 raise TypeError(
 *                     "If you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave %r"             # <<<<<<<<<<<<<<
 *                     % (args[0],))
 *             kw = args[0]
*/
      __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_mstate_global->__pyx_kp_u_If_you_pass_in_a_single_argument, __pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 179, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_4 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_t_7};
        __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 178, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_Raise(__pyx_t_2, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(0, 178, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":177
 *                 raise TypeError(
 *                     "You can only give one positional argument")
 *             if not hasattr(args[0], 'items'):             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "If you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave %r"
*/
    }

    /* "Cython/Tempita/_tempita.py":181
 *                     "If you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave %r"
 *                     % (args[0],))
 *             kw = args[0]             # <<<<<<<<<<<<<<
 *         ns = kw
 *         ns['__template_name__'] = self.name
*/
    __pyx_t_2 = __Pyx_GetItemInt_Tuple(__pyx_v_args, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_kw, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":170
 * 
 *     def substitute(self, *args, **kw):
 *         if args:             # <<<<<<<<<<<<<<
 *             if kw:
 *                 raise TypeError(
*/
  }

  /* "Cython/Tempita/_tempita.py":182
 *                     % (args[0],))
 *             kw = args[0]
 *         ns = kw             # <<<<<<<<<<<<<<
 *         ns['__template_name__'] = self.name
 *         if self.namespace:
*/
  __Pyx_INCREF(__pyx_v_kw);
  __pyx_v_ns = __pyx_v_kw;

  /* "Cython/Tempita/_tempita.py":183
 *             kw = args[0]
 *         ns = kw
 *         ns['__template_name__'] = self.name             # <<<<<<<<<<<<<<
 *         if self.namespace:
 *             ns.update(self.namespace)
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((PyObject_SetItem(__pyx_v_ns, __pyx_mstate_global->__pyx_n_u_template_name, __pyx_t_2) < 0))) __PYX_ERR(0, 183, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":184
 *         ns = kw
 *         ns['__template_name__'] = self.name
 *         if self.namespace:             # <<<<<<<<<<<<<<
 *             ns.update(self.namespace)
 *         result, defs, inherit = self._interpret(ns)
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_namespace); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_6) {


    /* "Cython/Tempita/_tempita.py":185
 *         ns['__template_name__'] = self.name
 *         if self.namespace:
 *             ns.update(self.namespace)             # <<<<<<<<<<<<<<
 *         result, defs, inherit = self._interpret(ns)
 *         if not inherit:
*/
    __pyx_t_7 = __pyx_v_ns;
    __Pyx_INCREF(__pyx_t_7);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_namespace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 185, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_t_3};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 185, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":184
 *         ns = kw
 *         ns['__template_name__'] = self.name
 *         if self.namespace:             # <<<<<<<<<<<<<<
 *             ns.update(self.namespace)
 *         result, defs, inherit = self._interpret(ns)
*/
  }

  /* "Cython/Tempita/_tempita.py":186
 *         if self.namespace:
 *             ns.update(self.namespace)
 *         result, defs, inherit = self._interpret(ns)             # <<<<<<<<<<<<<<
 *         if not inherit:
 *             inherit = self.default_inherit
*/
  __pyx_t_3 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ns};
    __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
    PyObject* sequence = __pyx_t_2;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 186, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_8);
    } else {
      __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 186, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_7 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 186, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_7);
      __pyx_t_8 = __Pyx_PyList_GET_ITEM_REF(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 186, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_8);
    }
    #else
    __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    Py_ssize_t index = -1;
    __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
    index = 0; __pyx_t_3 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_3)) goto __pyx_L8_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    index = 1; __pyx_t_7 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_7)) goto __pyx_L8_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_7);
    index = 2; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L8_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_8);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < (0)) __PYX_ERR(0, 186, __pyx_L1_error)
    __pyx_t_10 = NULL;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    goto __pyx_L9_unpacking_done;
    __pyx_L8_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_10 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(0, 186, __pyx_L1_error)
    __pyx_L9_unpacking_done:;
  }
  __pyx_v_result = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_defs = __pyx_t_7;
  __pyx_t_7 = 0;
  __pyx_v_inherit = __pyx_t_8;
  __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":187
 *             ns.update(self.namespace)
 *         result, defs, inherit = self._interpret(ns)
 *         if not inherit:             # <<<<<<<<<<<<<<
 *             inherit = self.default_inherit
 *         if inherit:
*/
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_inherit); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 187, __pyx_L1_error)
  __pyx_t_1 = (!__pyx_t_6);


  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":188
 *         result, defs, inherit = self._interpret(ns)
 *         if not inherit:
 *             inherit = self.default_inherit             # <<<<<<<<<<<<<<
 *         if inherit:
 *             result = self._interpret_inherit(result, defs, inherit, ns)
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_inherit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_inherit, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":187
 *             ns.update(self.namespace)
 *         result, defs, inherit = self._interpret(ns)
 *         if not inherit:             # <<<<<<<<<<<<<<
 *             inherit = self.default_inherit
 *         if inherit:
*/
  }

  /* "Cython/Tempita/_tempita.py":189
 *         if not inherit:
 *             inherit = self.default_inherit
 *         if inherit:             # <<<<<<<<<<<<<<
 *             result = self._interpret_inherit(result, defs, inherit, ns)
 *         return result
*/
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_inherit); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 189, __pyx_L1_error)
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":190
 *             inherit = self.default_inherit
 *         if inherit:
 *             result = self._interpret_inherit(result, defs, inherit, ns)             # <<<<<<<<<<<<<<
 *         return result
 * 
*/
    __pyx_t_8 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_4 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_8, __pyx_v_result, __pyx_v_defs, __pyx_v_inherit, __pyx_v_ns};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_inherit, __pyx_callargs+__pyx_t_4, (5-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":189
 *         if not inherit:
 *             inherit = self.default_inherit
 *         if inherit:             # <<<<<<<<<<<<<<
 *             result = self._interpret_inherit(result, defs, inherit, ns)
 *         return result
*/
  }

  /* "Cython/Tempita/_tempita.py":191
 *         if inherit:
 *             result = self._interpret_inherit(result, defs, inherit, ns)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def _interpret(self, ns) -> tuple:
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_v_result);
      __pyx_r = __pyx_v_result;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":169
 *             hex(id(self))[2:], self.name)
 * 
 *     def substitute(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         if args:
 *             if kw:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template.substitute", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_kw);
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_defs);
  __Pyx_XDECREF(__pyx_v_inherit);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":193
 *         return result
 * 
 *     def _interpret(self, ns) -> tuple:             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         parts = []
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_9_interpret(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_9_interpret = {"_interpret", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_9_interpret, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_9_interpret(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_ns = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_interpret (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_ns,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 193, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 193, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 193, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_interpret", 0) < (0)) __PYX_ERR(0, 193, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_interpret", 1, 2, 2, i); __PYX_ERR(0, 193, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 193, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 193, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_ns = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_interpret", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 193, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_8_interpret(__pyx_self, __pyx_v_self, __pyx_v_ns);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_8_interpret(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_ns) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_parts = NULL;
  PyObject *__pyx_v_defs = NULL;
  PyObject *__pyx_v_inherit = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_interpret", 0);

  /* "Cython/Tempita/_tempita.py":194
 * 
 *     def _interpret(self, ns) -> tuple:
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         parts = []
 *         defs = {}
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":195
 *     def _interpret(self, ns) -> tuple:
 *         __traceback_hide__ = True
 *         parts = []             # <<<<<<<<<<<<<<
 *         defs = {}
 *         self._interpret_codes(self._parsed, ns, out=parts, defs=defs)
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_parts = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":196
 *         __traceback_hide__ = True
 *         parts = []
 *         defs = {}             # <<<<<<<<<<<<<<
 *         self._interpret_codes(self._parsed, ns, out=parts, defs=defs)
 *         if '__inherit__' in defs:
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_defs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":197
 *         parts = []
 *         defs = {}
 *         self._interpret_codes(self._parsed, ns, out=parts, defs=defs)             # <<<<<<<<<<<<<<
 *         if '__inherit__' in defs:
 *             inherit = defs.pop('__inherit__')
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_parsed); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_2, __pyx_t_3, __pyx_v_ns, __pyx_v_parts, __pyx_v_defs};
    #if CYTHON_VECTORCALL
    __pyx_t_5 = __pyx_mstate_global->__pyx_tuple[4];
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 197, __pyx_L1_error)
    __Pyx_INCREF(__pyx_t_5);
    #else
    {
      PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_out, __pyx_mstate_global->__pyx_n_u_defs};
      __pyx_t_5 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+3, 2);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 197, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    #endif
    __pyx_t_1 = __Pyx_Object_VectorcallMethodKwds((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_codes, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":198
 *         defs = {}
 *         self._interpret_codes(self._parsed, ns, out=parts, defs=defs)
 *         if '__inherit__' in defs:             # <<<<<<<<<<<<<<
 *             inherit = defs.pop('__inherit__')
 *         else:
*/
  __pyx_t_6 = (__Pyx_PyDict_ContainsTF(__pyx_mstate_global->__pyx_n_u_inherit, __pyx_v_defs, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 198, __pyx_L1_error)
  if (__pyx_t_6) {


    /* "Cython/Tempita/_tempita.py":199
 *         self._interpret_codes(self._parsed, ns, out=parts, defs=defs)
 *         if '__inherit__' in defs:
 *             inherit = defs.pop('__inherit__')             # <<<<<<<<<<<<<<
 *         else:
 *             inherit = None
*/
    __pyx_t_1 = __Pyx_PyDict_Pop(__pyx_v_defs, __pyx_mstate_global->__pyx_n_u_inherit, ((PyObject *)NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_inherit = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":198
 *         defs = {}
 *         self._interpret_codes(self._parsed, ns, out=parts, defs=defs)
 *         if '__inherit__' in defs:             # <<<<<<<<<<<<<<
 *             inherit = defs.pop('__inherit__')
 *         else:
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":201
 *             inherit = defs.pop('__inherit__')
 *         else:
 *             inherit = None             # <<<<<<<<<<<<<<
 *         return ''.join(parts), defs, inherit
 * 
*/
  /*else*/ {
    __Pyx_INCREF(Py_None);
    __pyx_v_inherit = Py_None;
  }
  __pyx_L3:;

  /* "Cython/Tempita/_tempita.py":202
 *         else:
 *             inherit = None
 *         return ''.join(parts), defs, inherit             # <<<<<<<<<<<<<<
 * 
 *     def _interpret_inherit(self, body, defs, inherit_template, ns):
*/
  __pyx_t_1 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__5, __pyx_v_parts); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 202, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_defs);
  __Pyx_GIVEREF(__pyx_v_defs);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_defs) != (0)) __PYX_ERR(0, 202, __pyx_L1_error);
  __Pyx_INCREF(__pyx_v_inherit);
  __Pyx_GIVEREF(__pyx_v_inherit);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_inherit) != (0)) __PYX_ERR(0, 202, __pyx_L1_error);
  __pyx_t_1 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = ((PyObject*)__pyx_t_5);
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":193
 *         return result
 * 
 *     def _interpret(self, ns) -> tuple:             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         parts = []
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_parts);
  __Pyx_XDECREF(__pyx_v_defs);
  __Pyx_XDECREF(__pyx_v_inherit);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":204
 *         return ''.join(parts), defs, inherit
 * 
 *     def _interpret_inherit(self, body, defs, inherit_template, ns):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         if not self.get_template:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_11_interpret_inherit(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_11_interpret_inherit = {"_interpret_inherit", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_11_interpret_inherit, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_11_interpret_inherit(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_body = 0;
  PyObject *__pyx_v_defs = 0;
  PyObject *__pyx_v_inherit_template = 0;
  PyObject *__pyx_v_ns = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_interpret_inherit (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_body,&__pyx_mstate_global->__pyx_n_u_defs,&__pyx_mstate_global->__pyx_n_u_inherit_template,&__pyx_mstate_global->__pyx_n_u_ns,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 204, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_interpret_inherit", 0) < (0)) __PYX_ERR(0, 204, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_interpret_inherit", 1, 5, 5, i); __PYX_ERR(0, 204, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 204, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 204, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 204, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 204, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 204, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_body = values[1];
    __pyx_v_defs = values[2];
    __pyx_v_inherit_template = values[3];
    __pyx_v_ns = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_interpret_inherit", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 204, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_inherit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_10_interpret_inherit(__pyx_self, __pyx_v_self, __pyx_v_body, __pyx_v_defs, __pyx_v_inherit_template, __pyx_v_ns);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_10_interpret_inherit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_body, PyObject *__pyx_v_defs, PyObject *__pyx_v_inherit_template, PyObject *__pyx_v_ns) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_templ = NULL;
  PyObject *__pyx_v_self_ = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  Py_ssize_t __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_interpret_inherit", 0);
  __Pyx_INCREF(__pyx_v_ns);

  /* "Cython/Tempita/_tempita.py":205
 * 
 *     def _interpret_inherit(self, body, defs, inherit_template, ns):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         if not self.get_template:
 *             raise TemplateError(
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":206
 *     def _interpret_inherit(self, body, defs, inherit_template, ns):
 *         __traceback_hide__ = True
 *         if not self.get_template:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'You cannot use inheritance without passing in get_template',
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_get_template); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 206, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (!__pyx_t_2);


  if (unlikely(__pyx_t_3)) {


    /* "Cython/Tempita/_tempita.py":207
 *         __traceback_hide__ = True
 *         if not self.get_template:
 *             raise TemplateError(             # <<<<<<<<<<<<<<
 *                 'You cannot use inheritance without passing in get_template',
 *                 position=None, name=self.name)
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "Cython/Tempita/_tempita.py":209
 *             raise TemplateError(
 *                 'You cannot use inheritance without passing in get_template',
 *                 position=None, name=self.name)             # <<<<<<<<<<<<<<
 *         templ = self.get_template(inherit_template, self)
 *         self_ = TemplateObject(self.name)
*/
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 209, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
      __pyx_t_7 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_You_cannot_use_inheritance_witho, Py_None, __pyx_t_6};
      #if CYTHON_VECTORCALL
      __pyx_t_8 = __pyx_mstate_global->__pyx_tuple[5];
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 207, __pyx_L1_error)
      __Pyx_INCREF(__pyx_t_8);
      #else
      {
        PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
        __pyx_t_8 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 207, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      #endif
      __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_8);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 207, __pyx_L1_error)

    /* "Cython/Tempita/_tempita.py":206
 *     def _interpret_inherit(self, body, defs, inherit_template, ns):
 *         __traceback_hide__ = True
 *         if not self.get_template:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'You cannot use inheritance without passing in get_template',
*/
  }

  /* "Cython/Tempita/_tempita.py":210
 *                 'You cannot use inheritance without passing in get_template',
 *                 position=None, name=self.name)
 *         templ = self.get_template(inherit_template, self)             # <<<<<<<<<<<<<<
 *         self_ = TemplateObject(self.name)
 *         for name, value in defs.items():
*/
  __pyx_t_5 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_5);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_v_inherit_template, __pyx_v_self};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_get_template, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_templ = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":211
 *                 position=None, name=self.name)
 *         templ = self.get_template(inherit_template, self)
 *         self_ = TemplateObject(self.name)             # <<<<<<<<<<<<<<
 *         for name, value in defs.items():
 *             setattr(self_, name, value)
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_TemplateObject); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_5);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_5);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_self_ = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":212
 *         templ = self.get_template(inherit_template, self)
 *         self_ = TemplateObject(self.name)
 *         for name, value in defs.items():             # <<<<<<<<<<<<<<
 *             setattr(self_, name, value)
 *         self_.body = body
*/
  __pyx_t_9 = 0;
  if (unlikely(__pyx_v_defs == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "items");
    __PYX_ERR(0, 212, __pyx_L1_error)
  }
  __pyx_t_8 = __Pyx_dict_iterator(__pyx_v_defs, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_10), (&__pyx_t_11)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_8;
  __pyx_t_8 = 0;
  while (1) {
    __pyx_t_12 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_10, &__pyx_t_9, &__pyx_t_8, &__pyx_t_6, NULL, __pyx_t_11);
    if (unlikely(__pyx_t_12 == 0)) break;
    if (unlikely(__pyx_t_12 == -1)) __PYX_ERR(0, 212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_8);
    __pyx_t_8 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "Cython/Tempita/_tempita.py":213
 *         self_ = TemplateObject(self.name)
 *         for name, value in defs.items():
 *             setattr(self_, name, value)             # <<<<<<<<<<<<<<
 *         self_.body = body
 *         ns = ns.copy()
*/
    __pyx_t_13 = PyObject_SetAttr(__pyx_v_self_, __pyx_v_name, __pyx_v_value); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 213, __pyx_L1_error)

  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":214
 *         for name, value in defs.items():
 *             setattr(self_, name, value)
 *         self_.body = body             # <<<<<<<<<<<<<<
 *         ns = ns.copy()
 *         ns['self'] = self_
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self_, __pyx_mstate_global->__pyx_n_u_body, __pyx_v_body) < (0)) __PYX_ERR(0, 214, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":215
 *             setattr(self_, name, value)
 *         self_.body = body
 *         ns = ns.copy()             # <<<<<<<<<<<<<<
 *         ns['self'] = self_
 *         return templ.substitute(ns)
*/
  __pyx_t_6 = __pyx_v_ns;
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_copy, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF_SET(__pyx_v_ns, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":216
 *         self_.body = body
 *         ns = ns.copy()
 *         ns['self'] = self_             # <<<<<<<<<<<<<<
 *         return templ.substitute(ns)
 * 
*/
  if (unlikely((PyObject_SetItem(__pyx_v_ns, __pyx_mstate_global->__pyx_n_u_self, __pyx_v_self_) < 0))) __PYX_ERR(0, 216, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":217
 *         ns = ns.copy()
 *         ns['self'] = self_
 *         return templ.substitute(ns)             # <<<<<<<<<<<<<<
 * 
 *     def _interpret_codes(self, codes, ns, out, defs):
*/
  __pyx_t_6 = __pyx_v_templ;
  __Pyx_INCREF(__pyx_t_6);
  __pyx_t_7 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_ns};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_substitute, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_1;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":204
 *         return ''.join(parts), defs, inherit
 * 
 *     def _interpret_inherit(self, body, defs, inherit_template, ns):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         if not self.get_template:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_inherit", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_templ);
  __Pyx_XDECREF(__pyx_v_self_);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":219
 *         return templ.substitute(ns)
 * 
 *     def _interpret_codes(self, codes, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         for item in codes:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_13_interpret_codes(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_13_interpret_codes = {"_interpret_codes", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_13_interpret_codes, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_13_interpret_codes(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_codes = 0;
  PyObject *__pyx_v_ns = 0;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_v_defs = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_interpret_codes (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_codes,&__pyx_mstate_global->__pyx_n_u_ns,&__pyx_mstate_global->__pyx_n_u_out,&__pyx_mstate_global->__pyx_n_u_defs,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 219, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 219, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 219, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 219, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 219, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 219, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_interpret_codes", 0) < (0)) __PYX_ERR(0, 219, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_interpret_codes", 1, 5, 5, i); __PYX_ERR(0, 219, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 219, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 219, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 219, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 219, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 219, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_codes = values[1];
    __pyx_v_ns = values[2];
    __pyx_v_out = values[3];
    __pyx_v_defs = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_interpret_codes", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 219, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_codes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_12_interpret_codes(__pyx_self, __pyx_v_self, __pyx_v_codes, __pyx_v_ns, __pyx_v_out, __pyx_v_defs);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_12_interpret_codes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_codes, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_item = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_interpret_codes", 0);

  /* "Cython/Tempita/_tempita.py":220
 * 
 *     def _interpret_codes(self, codes, ns, out, defs):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         for item in codes:
 *             if isinstance(item, str):
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":221
 *     def _interpret_codes(self, codes, ns, out, defs):
 *         __traceback_hide__ = True
 *         for item in codes:             # <<<<<<<<<<<<<<
 *             if isinstance(item, str):
 *                 out.append(item)
*/
  if (likely(PyList_CheckExact(__pyx_v_codes)) || PyTuple_CheckExact(__pyx_v_codes)) {
    __pyx_t_1 = __pyx_v_codes; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_codes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 221, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 221, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 221, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 221, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":222
 *         __traceback_hide__ = True
 *         for item in codes:
 *             if isinstance(item, str):             # <<<<<<<<<<<<<<
 *                 out.append(item)
 *             else:
*/
    __pyx_t_5 = PyUnicode_Check(__pyx_v_item); 
    if (__pyx_t_5) {


      /* "Cython/Tempita/_tempita.py":223
 *         for item in codes:
 *             if isinstance(item, str):
 *                 out.append(item)             # <<<<<<<<<<<<<<
 *             else:
 *                 self._interpret_code(item, ns, out, defs)
*/
      __pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_out, __pyx_v_item); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 223, __pyx_L1_error)


      /* "Cython/Tempita/_tempita.py":222
 *         __traceback_hide__ = True
 *         for item in codes:
 *             if isinstance(item, str):             # <<<<<<<<<<<<<<
 *                 out.append(item)
 *             else:
*/
      goto __pyx_L5;
    }

    /* "Cython/Tempita/_tempita.py":225
 *                 out.append(item)
 *             else:
 *                 self._interpret_code(item, ns, out, defs)             # <<<<<<<<<<<<<<
 * 
 *     def _interpret_code(self, code, ns, out, defs):
*/
    /*else*/ {
      __pyx_t_7 = __pyx_v_self;
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_8 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_7, __pyx_v_item, __pyx_v_ns, __pyx_v_out, __pyx_v_defs};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_code, __pyx_callargs+__pyx_t_8, (5-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 225, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    __pyx_L5:;

    /* "Cython/Tempita/_tempita.py":221
 *     def _interpret_codes(self, codes, ns, out, defs):
 *         __traceback_hide__ = True
 *         for item in codes:             # <<<<<<<<<<<<<<
 *             if isinstance(item, str):
 *                 out.append(item)
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":219
 *         return templ.substitute(ns)
 * 
 *     def _interpret_codes(self, codes, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         for item in codes:
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_codes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":227
 *                 self._interpret_code(item, ns, out, defs)
 * 
 *     def _interpret_code(self, code, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         name, pos = code[0], code[1]
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_15_interpret_code(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_15_interpret_code = {"_interpret_code", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_15_interpret_code, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_15_interpret_code(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_v_ns = 0;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_v_defs = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_interpret_code (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_code,&__pyx_mstate_global->__pyx_n_u_ns,&__pyx_mstate_global->__pyx_n_u_out,&__pyx_mstate_global->__pyx_n_u_defs,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 227, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 227, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_interpret_code", 0) < (0)) __PYX_ERR(0, 227, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_interpret_code", 1, 5, 5, i); __PYX_ERR(0, 227, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 227, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 227, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 227, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 227, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 227, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_code = values[1];
    __pyx_v_ns = values[2];
    __pyx_v_out = values[3];
    __pyx_v_defs = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_interpret_code", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 227, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_code", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_14_interpret_code(__pyx_self, __pyx_v_self, __pyx_v_code, __pyx_v_ns, __pyx_v_out, __pyx_v_defs);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_14_interpret_code(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_pos = NULL;
  PyObject *__pyx_v_vars = NULL;
  PyObject *__pyx_v_expr = NULL;
  PyObject *__pyx_v_content = NULL;
  PyObject *__pyx_v_parts = NULL;
  PyObject *__pyx_v_base = NULL;
  PyObject *__pyx_v_part = NULL;
  PyObject *__pyx_v_func = NULL;
  PyObject *__pyx_v_var = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_signature = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_interpret_code", 0);

  /* "Cython/Tempita/_tempita.py":228
 * 
 *     def _interpret_code(self, code, ns, out, defs):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         name, pos = code[0], code[1]
 *         if name == 'py':
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":229
 *     def _interpret_code(self, code, ns, out, defs):
 *         __traceback_hide__ = True
 *         name, pos = code[0], code[1]             # <<<<<<<<<<<<<<
 *         if name == 'py':
 *             self._exec(code[2], ns, pos)
*/
  __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_code, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_name = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_pos = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":230
 *         __traceback_hide__ = True
 *         name, pos = code[0], code[1]
 *         if name == 'py':             # <<<<<<<<<<<<<<
 *             self._exec(code[2], ns, pos)
 *         elif name == 'continue':
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_py, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 230, __pyx_L1_error)
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":231
 *         name, pos = code[0], code[1]
 *         if name == 'py':
 *             self._exec(code[2], ns, pos)             # <<<<<<<<<<<<<<
 *         elif name == 'continue':
 *             raise _TemplateContinue()
*/
    __pyx_t_1 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_code, 2, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_t_4, __pyx_v_ns, __pyx_v_pos};
      __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_exec, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":230
 *         __traceback_hide__ = True
 *         name, pos = code[0], code[1]
 *         if name == 'py':             # <<<<<<<<<<<<<<
 *             self._exec(code[2], ns, pos)
 *         elif name == 'continue':
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":232
 *         if name == 'py':
 *             self._exec(code[2], ns, pos)
 *         elif name == 'continue':             # <<<<<<<<<<<<<<
 *             raise _TemplateContinue()
 *         elif name == 'break':
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_continue, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 232, __pyx_L1_error)
  if (unlikely(__pyx_t_3)) {


    /* "Cython/Tempita/_tempita.py":233
 *             self._exec(code[2], ns, pos)
 *         elif name == 'continue':
 *             raise _TemplateContinue()             # <<<<<<<<<<<<<<
 *         elif name == 'break':
 *             raise _TemplateBreak()
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_TemplateContinue); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 233, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 233, __pyx_L1_error)

    /* "Cython/Tempita/_tempita.py":232
 *         if name == 'py':
 *             self._exec(code[2], ns, pos)
 *         elif name == 'continue':             # <<<<<<<<<<<<<<
 *             raise _TemplateContinue()
 *         elif name == 'break':
*/
  }

  /* "Cython/Tempita/_tempita.py":234
 *         elif name == 'continue':
 *             raise _TemplateContinue()
 *         elif name == 'break':             # <<<<<<<<<<<<<<
 *             raise _TemplateBreak()
 *         elif name == 'for':
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_break, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 234, __pyx_L1_error)
  if (unlikely(__pyx_t_3)) {


    /* "Cython/Tempita/_tempita.py":235
 *             raise _TemplateContinue()
 *         elif name == 'break':
 *             raise _TemplateBreak()             # <<<<<<<<<<<<<<
 *         elif name == 'for':
 *             vars, expr, content = code[2], code[3], code[4]
*/
    __pyx_t_1 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_TemplateBreak); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
      assert(__pyx_t_1);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 235, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 235, __pyx_L1_error)

    /* "Cython/Tempita/_tempita.py":234
 *         elif name == 'continue':
 *             raise _TemplateContinue()
 *         elif name == 'break':             # <<<<<<<<<<<<<<
 *             raise _TemplateBreak()
 *         elif name == 'for':
*/
  }

  /* "Cython/Tempita/_tempita.py":236
 *         elif name == 'break':
 *             raise _TemplateBreak()
 *         elif name == 'for':             # <<<<<<<<<<<<<<
 *             vars, expr, content = code[2], code[3], code[4]
 *             expr = self._eval(expr, ns, pos)
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_for, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 236, __pyx_L1_error)
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":237
 *             raise _TemplateBreak()
 *         elif name == 'for':
 *             vars, expr, content = code[2], code[3], code[4]             # <<<<<<<<<<<<<<
 *             expr = self._eval(expr, ns, pos)
 *             self._interpret_for(vars, expr, content, ns, out, defs)
*/
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_code, 2, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_code, 3, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 4, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_vars = __pyx_t_2;
    __pyx_t_2 = 0;
    __pyx_v_expr = __pyx_t_4;
    __pyx_t_4 = 0;
    __pyx_v_content = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":238
 *         elif name == 'for':
 *             vars, expr, content = code[2], code[3], code[4]
 *             expr = self._eval(expr, ns, pos)             # <<<<<<<<<<<<<<
 *             self._interpret_for(vars, expr, content, ns, out, defs)
 *         elif name == 'cond':
*/
    __pyx_t_4 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_expr, __pyx_v_ns, __pyx_v_pos};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_eval_2, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 238, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF_SET(__pyx_v_expr, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":239
 *             vars, expr, content = code[2], code[3], code[4]
 *             expr = self._eval(expr, ns, pos)
 *             self._interpret_for(vars, expr, content, ns, out, defs)             # <<<<<<<<<<<<<<
 *         elif name == 'cond':
 *             parts = code[2:]
*/
    __pyx_t_4 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[7] = {__pyx_t_4, __pyx_v_vars, __pyx_v_expr, __pyx_v_content, __pyx_v_ns, __pyx_v_out, __pyx_v_defs};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_for, __pyx_callargs+__pyx_t_5, (7-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":236
 *         elif name == 'break':
 *             raise _TemplateBreak()
 *         elif name == 'for':             # <<<<<<<<<<<<<<
 *             vars, expr, content = code[2], code[3], code[4]
 *             expr = self._eval(expr, ns, pos)
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":240
 *             expr = self._eval(expr, ns, pos)
 *             self._interpret_for(vars, expr, content, ns, out, defs)
 *         elif name == 'cond':             # <<<<<<<<<<<<<<
 *             parts = code[2:]
 *             self._interpret_if(parts, ns, out, defs)
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_cond, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 240, __pyx_L1_error)
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":241
 *             self._interpret_for(vars, expr, content, ns, out, defs)
 *         elif name == 'cond':
 *             parts = code[2:]             # <<<<<<<<<<<<<<
 *             self._interpret_if(parts, ns, out, defs)
 *         elif name == 'expr':
*/
    __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_code, 2, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[1], 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_parts = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":242
 *         elif name == 'cond':
 *             parts = code[2:]
 *             self._interpret_if(parts, ns, out, defs)             # <<<<<<<<<<<<<<
 *         elif name == 'expr':
 *             parts = code[2].split('|')
*/
    __pyx_t_4 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_v_parts, __pyx_v_ns, __pyx_v_out, __pyx_v_defs};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_if, __pyx_callargs+__pyx_t_5, (5-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 242, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":240
 *             expr = self._eval(expr, ns, pos)
 *             self._interpret_for(vars, expr, content, ns, out, defs)
 *         elif name == 'cond':             # <<<<<<<<<<<<<<
 *             parts = code[2:]
 *             self._interpret_if(parts, ns, out, defs)
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":243
 *             parts = code[2:]
 *             self._interpret_if(parts, ns, out, defs)
 *         elif name == 'expr':             # <<<<<<<<<<<<<<
 *             parts = code[2].split('|')
 *             base = self._eval(parts[0], ns, pos)
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_expr, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 243, __pyx_L1_error)
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":244
 *             self._interpret_if(parts, ns, out, defs)
 *         elif name == 'expr':
 *             parts = code[2].split('|')             # <<<<<<<<<<<<<<
 *             base = self._eval(parts[0], ns, pos)
 *             for part in parts[1:]:
*/
    __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_code, 2, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __pyx_t_2;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u__6};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_split, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_parts = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":245
 *         elif name == 'expr':
 *             parts = code[2].split('|')
 *             base = self._eval(parts[0], ns, pos)             # <<<<<<<<<<<<<<
 *             for part in parts[1:]:
 *                 func = self._eval(part, ns, pos)
*/
    __pyx_t_2 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_parts, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_4, __pyx_v_ns, __pyx_v_pos};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_eval_2, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 245, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_base = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":246
 *             parts = code[2].split('|')
 *             base = self._eval(parts[0], ns, pos)
 *             for part in parts[1:]:             # <<<<<<<<<<<<<<
 *                 func = self._eval(part, ns, pos)
 *                 base = func(base)
*/
    __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_parts, 1, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[2], 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
      __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4);
      __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 246, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_4, __pyx_t_6, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_6;
        } else {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 246, __pyx_L1_error)
            #endif
            if (__pyx_t_6 >= __pyx_temp) break;
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6));
          #else
          __pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_6);
          #endif
          ++__pyx_t_6;
        }
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error)
      } else {
        __pyx_t_1 = __pyx_t_7(__pyx_t_4);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 246, __pyx_L1_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_part, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":247
 *             base = self._eval(parts[0], ns, pos)
 *             for part in parts[1:]:
 *                 func = self._eval(part, ns, pos)             # <<<<<<<<<<<<<<
 *                 base = func(base)
 *             out.append(self._repr(base, pos))
*/
      __pyx_t_2 = __pyx_v_self;
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_part, __pyx_v_ns, __pyx_v_pos};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_eval_2, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 247, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XDECREF_SET(__pyx_v_func, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":248
 *             for part in parts[1:]:
 *                 func = self._eval(part, ns, pos)
 *                 base = func(base)             # <<<<<<<<<<<<<<
 *             out.append(self._repr(base, pos))
 *         elif name == 'default':
*/
      __pyx_t_2 = NULL;
      __Pyx_INCREF(__pyx_v_func);
      __pyx_t_8 = __pyx_v_func; 
      __pyx_t_5 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_8);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
        __pyx_t_5 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_base};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_DECREF_SET(__pyx_v_base, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":246
 *             parts = code[2].split('|')
 *             base = self._eval(parts[0], ns, pos)
 *             for part in parts[1:]:             # <<<<<<<<<<<<<<
 *                 func = self._eval(part, ns, pos)
 *                 base = func(base)
*/
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":249
 *                 func = self._eval(part, ns, pos)
 *                 base = func(base)
 *             out.append(self._repr(base, pos))             # <<<<<<<<<<<<<<
 *         elif name == 'default':
 *             var, expr = code[2], code[3]
*/
    __pyx_t_1 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_1, __pyx_v_base, __pyx_v_pos};
      __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_repr, __pyx_callargs+__pyx_t_5, (3-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    }
    __pyx_t_9 = __Pyx_PyObject_Append(__pyx_v_out, __pyx_t_4); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 249, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;


    /* "Cython/Tempita/_tempita.py":243
 *             parts = code[2:]
 *             self._interpret_if(parts, ns, out, defs)
 *         elif name == 'expr':             # <<<<<<<<<<<<<<
 *             parts = code[2].split('|')
 *             base = self._eval(parts[0], ns, pos)
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":250
 *                 base = func(base)
 *             out.append(self._repr(base, pos))
 *         elif name == 'default':             # <<<<<<<<<<<<<<
 *             var, expr = code[2], code[3]
 *             if var not in ns:
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_default, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 250, __pyx_L1_error)
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":251
 *             out.append(self._repr(base, pos))
 *         elif name == 'default':
 *             var, expr = code[2], code[3]             # <<<<<<<<<<<<<<
 *             if var not in ns:
 *                 result = self._eval(expr, ns, pos)
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_code, 2, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 3, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_var = __pyx_t_4;
    __pyx_t_4 = 0;
    __pyx_v_expr = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":252
 *         elif name == 'default':
 *             var, expr = code[2], code[3]
 *             if var not in ns:             # <<<<<<<<<<<<<<
 *                 result = self._eval(expr, ns, pos)
 *                 ns[var] = result
*/
    __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_var, __pyx_v_ns, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 252, __pyx_L1_error)
    if (__pyx_t_3) {


      /* "Cython/Tempita/_tempita.py":253
 *             var, expr = code[2], code[3]
 *             if var not in ns:
 *                 result = self._eval(expr, ns, pos)             # <<<<<<<<<<<<<<
 *                 ns[var] = result
 *         elif name == 'inherit':
*/
      __pyx_t_4 = __pyx_v_self;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_expr, __pyx_v_ns, __pyx_v_pos};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_eval_2, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_v_result = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":254
 *             if var not in ns:
 *                 result = self._eval(expr, ns, pos)
 *                 ns[var] = result             # <<<<<<<<<<<<<<
 *         elif name == 'inherit':
 *             expr = code[2]
*/
      if (unlikely((PyObject_SetItem(__pyx_v_ns, __pyx_v_var, __pyx_v_result) < 0))) __PYX_ERR(0, 254, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":252
 *         elif name == 'default':
 *             var, expr = code[2], code[3]
 *             if var not in ns:             # <<<<<<<<<<<<<<
 *                 result = self._eval(expr, ns, pos)
 *                 ns[var] = result
*/
    }

    /* "Cython/Tempita/_tempita.py":250
 *                 base = func(base)
 *             out.append(self._repr(base, pos))
 *         elif name == 'default':             # <<<<<<<<<<<<<<
 *             var, expr = code[2], code[3]
 *             if var not in ns:
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":255
 *                 result = self._eval(expr, ns, pos)
 *                 ns[var] = result
 *         elif name == 'inherit':             # <<<<<<<<<<<<<<
 *             expr = code[2]
 *             value = self._eval(expr, ns, pos)
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_inherit_2, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 255, __pyx_L1_error)
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":256
 *                 ns[var] = result
 *         elif name == 'inherit':
 *             expr = code[2]             # <<<<<<<<<<<<<<
 *             value = self._eval(expr, ns, pos)
 *             defs['__inherit__'] = value
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 2, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_expr = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":257
 *         elif name == 'inherit':
 *             expr = code[2]
 *             value = self._eval(expr, ns, pos)             # <<<<<<<<<<<<<<
 *             defs['__inherit__'] = value
 *         elif name == 'def':
*/
    __pyx_t_4 = __pyx_v_self;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    {
      PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_expr, __pyx_v_ns, __pyx_v_pos};
      __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_eval_2, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_v_value = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":258
 *             expr = code[2]
 *             value = self._eval(expr, ns, pos)
 *             defs['__inherit__'] = value             # <<<<<<<<<<<<<<
 *         elif name == 'def':
 *             name = code[2]
*/
    if (unlikely((PyObject_SetItem(__pyx_v_defs, __pyx_mstate_global->__pyx_n_u_inherit, __pyx_v_value) < 0))) __PYX_ERR(0, 258, __pyx_L1_error)

    /* "Cython/Tempita/_tempita.py":255
 *                 result = self._eval(expr, ns, pos)
 *                 ns[var] = result
 *         elif name == 'inherit':             # <<<<<<<<<<<<<<
 *             expr = code[2]
 *             value = self._eval(expr, ns, pos)
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":259
 *             value = self._eval(expr, ns, pos)
 *             defs['__inherit__'] = value
 *         elif name == 'def':             # <<<<<<<<<<<<<<
 *             name = code[2]
 *             signature = code[3]
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_def, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 259, __pyx_L1_error)
  if (__pyx_t_3) {


    /* "Cython/Tempita/_tempita.py":260
 *             defs['__inherit__'] = value
 *         elif name == 'def':
 *             name = code[2]             # <<<<<<<<<<<<<<
 *             signature = code[3]
 *             parts = code[4]
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 2, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":261
 *         elif name == 'def':
 *             name = code[2]
 *             signature = code[3]             # <<<<<<<<<<<<<<
 *             parts = code[4]
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 3, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_signature = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":262
 *             name = code[2]
 *             signature = code[3]
 *             parts = code[4]             # <<<<<<<<<<<<<<
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,
 *                                                 pos=pos)
*/
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_code, 4, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_parts = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":263
 *             signature = code[3]
 *             parts = code[4]
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,             # <<<<<<<<<<<<<<
 *                                                 pos=pos)
 *         elif name == 'comment':
*/
    __pyx_t_4 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_TemplateDef); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);

    /* "Cython/Tempita/_tempita.py":264
 *             parts = code[4]
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,
 *                                                 pos=pos)             # <<<<<<<<<<<<<<
 *         elif name == 'comment':
 *             return
*/
    __pyx_t_5 = 1;
    #if CYTHON_UNPACK_METHODS
    if (unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_8);
      assert(__pyx_t_4);
      PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx__function);
      __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
      __pyx_t_5 = 0;
    }
    #endif
    {
      PyObject *__pyx_callargs[7] = {__pyx_t_4, __pyx_v_self, __pyx_v_name, __pyx_v_signature, __pyx_v_parts, __pyx_v_ns, __pyx_v_pos};
      #if CYTHON_VECTORCALL
      __pyx_t_2 = __pyx_mstate_global->__pyx_tuple[6];
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 263, __pyx_L1_error)
      __Pyx_INCREF(__pyx_t_2);
      #else
      {
        PyObject *__pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_body, __pyx_mstate_global->__pyx_n_u_ns, __pyx_mstate_global->__pyx_n_u_pos};
        __pyx_t_2 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+4, 3);
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 263, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      }
      #endif
      __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_2);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    }

    /* "Cython/Tempita/_tempita.py":263
 *             signature = code[3]
 *             parts = code[4]
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,             # <<<<<<<<<<<<<<
 *                                                 pos=pos)
 *         elif name == 'comment':
*/
    if (unlikely((PyObject_SetItem(__pyx_v_ns, __pyx_v_name, __pyx_t_1) < 0))) __PYX_ERR(0, 263, __pyx_L1_error)
    if (unlikely((PyObject_SetItem(__pyx_v_defs, __pyx_v_name, __pyx_t_1) < 0))) __PYX_ERR(0, 263, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":259
 *             value = self._eval(expr, ns, pos)
 *             defs['__inherit__'] = value
 *         elif name == 'def':             # <<<<<<<<<<<<<<
 *             name = code[2]
 *             signature = code[3]
*/
    goto __pyx_L3;
  }

  /* "Cython/Tempita/_tempita.py":265
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,
 *                                                 pos=pos)
 *         elif name == 'comment':             # <<<<<<<<<<<<<<
 *             return
 *         else:
*/
  __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_comment, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 265, __pyx_L1_error)
  if (likely(__pyx_t_3)) {


    /* "Cython/Tempita/_tempita.py":266
 *                                                 pos=pos)
 *         elif name == 'comment':
 *             return             # <<<<<<<<<<<<<<
 *         else:
 *             assert 0, "Unknown code: %r" % name
*/
    {
      PyObject *__pyx_temp;
      {
        __pyx_temp = __pyx_r;
        __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      }
      __Pyx_XDECREF(__pyx_temp);
    }
    goto __pyx_L0;

    /* "Cython/Tempita/_tempita.py":265
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,
 *                                                 pos=pos)
 *         elif name == 'comment':             # <<<<<<<<<<<<<<
 *             return
 *         else:
*/
  }

  /* "Cython/Tempita/_tempita.py":268
 *             return
 *         else:
 *             assert 0, "Unknown code: %r" % name             # <<<<<<<<<<<<<<
 * 
 *     def _interpret_for(self, vars, expr, content, ns, out, defs):
*/
  /*else*/ {
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_1 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Unknown_code_r, __pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 268, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_t_1, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 268, __pyx_L1_error)
    }
    #else
    if ((1)); else __PYX_ERR(0, 268, __pyx_L1_error)
    #endif
  }
  __pyx_L3:;

  /* "Cython/Tempita/_tempita.py":227
 *                 self._interpret_code(item, ns, out, defs)
 * 
 *     def _interpret_code(self, code, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         name, pos = code[0], code[1]
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_code", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_pos);
  __Pyx_XDECREF(__pyx_v_vars);
  __Pyx_XDECREF(__pyx_v_expr);
  __Pyx_XDECREF(__pyx_v_content);
  __Pyx_XDECREF(__pyx_v_parts);
  __Pyx_XDECREF(__pyx_v_base);
  __Pyx_XDECREF(__pyx_v_part);
  __Pyx_XDECREF(__pyx_v_func);
  __Pyx_XDECREF(__pyx_v_var);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_signature);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":270
 *             assert 0, "Unknown code: %r" % name
 * 
 *     def _interpret_for(self, vars, expr, content, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         for item in expr:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_17_interpret_for(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_17_interpret_for = {"_interpret_for", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_17_interpret_for, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_17_interpret_for(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_vars = 0;
  PyObject *__pyx_v_expr = 0;
  PyObject *__pyx_v_content = 0;
  PyObject *__pyx_v_ns = 0;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_v_defs = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[7] = {0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_interpret_for (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_vars,&__pyx_mstate_global->__pyx_n_u_expr,&__pyx_mstate_global->__pyx_n_u_content,&__pyx_mstate_global->__pyx_n_u_ns,&__pyx_mstate_global->__pyx_n_u_out,&__pyx_mstate_global->__pyx_n_u_defs,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 270, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 270, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 270, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 270, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 270, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 270, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 270, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 270, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_interpret_for", 0) < (0)) __PYX_ERR(0, 270, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_interpret_for", 1, 7, 7, i); __PYX_ERR(0, 270, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 7)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 270, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 270, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 270, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 270, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 270, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 270, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 270, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_vars = values[1];
    __pyx_v_expr = values[2];
    __pyx_v_content = values[3];
    __pyx_v_ns = values[4];
    __pyx_v_out = values[5];
    __pyx_v_defs = values[6];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_interpret_for", 1, 7, 7, __pyx_nargs); __PYX_ERR(0, 270, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_for", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_16_interpret_for(__pyx_self, __pyx_v_self, __pyx_v_vars, __pyx_v_expr, __pyx_v_content, __pyx_v_ns, __pyx_v_out, __pyx_v_defs);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_16_interpret_for(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_vars, PyObject *__pyx_v_expr, PyObject *__pyx_v_content, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_item = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  PyObject *(*__pyx_t_13)(PyObject *);
  PyObject *(*__pyx_t_14)(PyObject *);
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  int __pyx_t_18;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_interpret_for", 0);

  /* "Cython/Tempita/_tempita.py":271
 * 
 *     def _interpret_for(self, vars, expr, content, ns, out, defs):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         for item in expr:
 *             if len(vars) == 1:
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":272
 *     def _interpret_for(self, vars, expr, content, ns, out, defs):
 *         __traceback_hide__ = True
 *         for item in expr:             # <<<<<<<<<<<<<<
 *             if len(vars) == 1:
 *                 ns[vars[0]] = item
*/
  if (likely(PyList_CheckExact(__pyx_v_expr)) || PyTuple_CheckExact(__pyx_v_expr)) {
    __pyx_t_1 = __pyx_v_expr; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_expr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 272, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 272, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 272, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 272, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 272, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 272, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":273
 *         __traceback_hide__ = True
 *         for item in expr:
 *             if len(vars) == 1:             # <<<<<<<<<<<<<<
 *                 ns[vars[0]] = item
 *             else:
*/
    __pyx_t_5 = PyObject_Length(__pyx_v_vars); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 273, __pyx_L1_error)
    __pyx_t_6 = (__pyx_t_5 == 1);


    if (__pyx_t_6) {


      /* "Cython/Tempita/_tempita.py":274
 *         for item in expr:
 *             if len(vars) == 1:
 *                 ns[vars[0]] = item             # <<<<<<<<<<<<<<
 *             else:
 *                 if len(vars) != len(item):
*/
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_vars, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 274, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (unlikely((PyObject_SetItem(__pyx_v_ns, __pyx_t_4, __pyx_v_item) < 0))) __PYX_ERR(0, 274, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "Cython/Tempita/_tempita.py":273
 *         __traceback_hide__ = True
 *         for item in expr:
 *             if len(vars) == 1:             # <<<<<<<<<<<<<<
 *                 ns[vars[0]] = item
 *             else:
*/
      goto __pyx_L5;
    }

    /* "Cython/Tempita/_tempita.py":276
 *                 ns[vars[0]] = item
 *             else:
 *                 if len(vars) != len(item):             # <<<<<<<<<<<<<<
 *                     raise ValueError(
 *                         'Need %i items to unpack (got %i items)'
*/
    /*else*/ {
      __pyx_t_5 = PyObject_Length(__pyx_v_vars); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 276, __pyx_L1_error)
      __pyx_t_7 = PyObject_Length(__pyx_v_item); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 276, __pyx_L1_error)
      __pyx_t_6 = (__pyx_t_5 != __pyx_t_7);



      if (unlikely(__pyx_t_6)) {


        /* "Cython/Tempita/_tempita.py":277
 *             else:
 *                 if len(vars) != len(item):
 *                     raise ValueError(             # <<<<<<<<<<<<<<
 *                         'Need %i items to unpack (got %i items)'
 *                         % (len(vars), len(item)))
*/
        __pyx_t_8 = NULL;

        /* "Cython/Tempita/_tempita.py":279
 *                     raise ValueError(
 *                         'Need %i items to unpack (got %i items)'
 *                         % (len(vars), len(item)))             # <<<<<<<<<<<<<<
 *                 for name, value in zip(vars, item):
 *                     ns[name] = value
*/
        __pyx_t_7 = PyObject_Length(__pyx_v_vars); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 279, __pyx_L1_error)
        __pyx_t_9 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);

        __pyx_t_7 = PyObject_Length(__pyx_v_item); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 279, __pyx_L1_error)
        __pyx_t_10 = PyLong_FromSsize_t(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);

        __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __Pyx_GIVEREF(__pyx_t_9);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 279, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_10);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_10) != (0)) __PYX_ERR(0, 279, __pyx_L1_error);
        __pyx_t_9 = 0;
        __pyx_t_10 = 0;
        __pyx_t_10 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Need_i_items_to_unpack_got_i_ite, __pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 279, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_12 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, __pyx_t_10};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_ValueError)), __pyx_callargs+__pyx_t_12, (2-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_Raise(__pyx_t_4, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __PYX_ERR(0, 277, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":276
 *                 ns[vars[0]] = item
 *             else:
 *                 if len(vars) != len(item):             # <<<<<<<<<<<<<<
 *                     raise ValueError(
 *                         'Need %i items to unpack (got %i items)'
*/
      }

      /* "Cython/Tempita/_tempita.py":280
 *                         'Need %i items to unpack (got %i items)'
 *                         % (len(vars), len(item)))
 *                 for name, value in zip(vars, item):             # <<<<<<<<<<<<<<
 *                     ns[name] = value
 *             try:
*/
      __pyx_t_10 = NULL;
      __pyx_t_12 = 1;
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_v_vars, __pyx_v_item};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_zip, __pyx_callargs+__pyx_t_12, (3-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
        __pyx_t_10 = __pyx_t_4; __Pyx_INCREF(__pyx_t_10);
        __pyx_t_7 = 0;
        __pyx_t_13 = NULL;
      } else {
        __pyx_t_7 = -1; __pyx_t_10 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 280, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_13 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 280, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      for (;;) {
        if (likely(!__pyx_t_13)) {
          if (likely(PyList_CheckExact(__pyx_t_10))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_10);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 280, __pyx_L1_error)
              #endif
              if (__pyx_t_7 >= __pyx_temp) break;
            }
            __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_10, __pyx_t_7, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_7;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_10);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 280, __pyx_L1_error)
              #endif
              if (__pyx_t_7 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_10, __pyx_t_7));
            #else
            __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_10, __pyx_t_7);
            #endif
            ++__pyx_t_7;
          }
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 280, __pyx_L1_error)
        } else {
          __pyx_t_4 = __pyx_t_13(__pyx_t_10);
          if (unlikely(!__pyx_t_4)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 280, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_4);
        if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
          PyObject* sequence = __pyx_t_4;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 280, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_8 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_8);
            __pyx_t_11 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_11);
          } else {
            __pyx_t_8 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 280, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_8);
            __pyx_t_11 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 280, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_11);
          }
          #else
          __pyx_t_8 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 280, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_11 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 280, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_11);
          #endif
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_9 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 280, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_14 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_9);
          index = 0; __pyx_t_8 = __pyx_t_14(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L9_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_8);
          index = 1; __pyx_t_11 = __pyx_t_14(__pyx_t_9); if (unlikely(!__pyx_t_11)) goto __pyx_L9_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_11);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_9), 2) < (0)) __PYX_ERR(0, 280, __pyx_L1_error)
          __pyx_t_14 = NULL;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          goto __pyx_L10_unpacking_done;
          __pyx_L9_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __pyx_t_14 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 280, __pyx_L1_error)
          __pyx_L10_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_8);
        __pyx_t_8 = 0;
        __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_11);
        __pyx_t_11 = 0;

        /* "Cython/Tempita/_tempita.py":281
 *                         % (len(vars), len(item)))
 *                 for name, value in zip(vars, item):
 *                     ns[name] = value             # <<<<<<<<<<<<<<
 *             try:
 *                 self._interpret_codes(content, ns, out, defs)
*/
        if (unlikely((PyObject_SetItem(__pyx_v_ns, __pyx_v_name, __pyx_v_value) < 0))) __PYX_ERR(0, 281, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":280
 *                         'Need %i items to unpack (got %i items)'
 *                         % (len(vars), len(item)))
 *                 for name, value in zip(vars, item):             # <<<<<<<<<<<<<<
 *                     ns[name] = value
 *             try:
*/
      }
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __pyx_L5:;

    /* "Cython/Tempita/_tempita.py":282
 *                 for name, value in zip(vars, item):
 *                     ns[name] = value
 *             try:             # <<<<<<<<<<<<<<
 *                 self._interpret_codes(content, ns, out, defs)
 *             except _TemplateContinue:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_15, &__pyx_t_16, &__pyx_t_17);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __Pyx_XGOTREF(__pyx_t_17);
      /*try:*/ {

        /* "Cython/Tempita/_tempita.py":283
 *                     ns[name] = value
 *             try:
 *                 self._interpret_codes(content, ns, out, defs)             # <<<<<<<<<<<<<<
 *             except _TemplateContinue:
 *                 continue
*/
        __pyx_t_4 = __pyx_v_self;
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_12 = 0;
        {
          PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_v_content, __pyx_v_ns, __pyx_v_out, __pyx_v_defs};
          __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_codes, __pyx_callargs+__pyx_t_12, (5-__pyx_t_12) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 283, __pyx_L12_error)
          __Pyx_GOTREF(__pyx_t_10);
        }
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

        /* "Cython/Tempita/_tempita.py":282
 *                 for name, value in zip(vars, item):
 *                     ns[name] = value
 *             try:             # <<<<<<<<<<<<<<
 *                 self._interpret_codes(content, ns, out, defs)
 *             except _TemplateContinue:
*/
      }
      __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
      __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
      __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
      goto __pyx_L19_try_end;
      __pyx_L12_error:;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "Cython/Tempita/_tempita.py":284
 *             try:
 *                 self._interpret_codes(content, ns, out, defs)
 *             except _TemplateContinue:             # <<<<<<<<<<<<<<
 *                 continue
 *             except _TemplateBreak:
*/
      __Pyx_ErrFetch(&__pyx_t_10, &__pyx_t_4, &__pyx_t_11);
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_TemplateContinue); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 284, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_18 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_10, __pyx_t_8);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_ErrRestore(__pyx_t_10, __pyx_t_4, __pyx_t_11);
      __pyx_t_10 = 0; __pyx_t_4 = 0; __pyx_t_11 = 0;
      if (__pyx_t_18) {
        __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_for", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_4, &__pyx_t_10) < 0) __PYX_ERR(0, 284, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_10);

        /* "Cython/Tempita/_tempita.py":285
 *                 self._interpret_codes(content, ns, out, defs)
 *             except _TemplateContinue:
 *                 continue             # <<<<<<<<<<<<<<
 *             except _TemplateBreak:
 *                 break
*/
        goto __pyx_L20_except_continue;
        __pyx_L20_except_continue:;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L18_try_continue;
      }

      /* "Cython/Tempita/_tempita.py":286
 *             except _TemplateContinue:
 *                 continue
 *             except _TemplateBreak:             # <<<<<<<<<<<<<<
 *                 break
 * 
*/
      __Pyx_ErrFetch(&__pyx_t_10, &__pyx_t_4, &__pyx_t_11);
      __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_TemplateBreak); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 286, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_18 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_10, __pyx_t_8);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_ErrRestore(__pyx_t_10, __pyx_t_4, __pyx_t_11);
      __pyx_t_10 = 0; __pyx_t_4 = 0; __pyx_t_11 = 0;
      if (__pyx_t_18) {
        __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_for", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_4, &__pyx_t_10) < 0) __PYX_ERR(0, 286, __pyx_L14_except_error)
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_10);

        /* "Cython/Tempita/_tempita.py":287
 *                 continue
 *             except _TemplateBreak:
 *                 break             # <<<<<<<<<<<<<<
 * 
 *     def _interpret_if(self, parts, ns, out, defs):
*/
        goto __pyx_L23_except_break;
        __pyx_L23_except_break:;
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L17_try_break;
      }
      goto __pyx_L14_except_error;

      /* "Cython/Tempita/_tempita.py":282
 *                 for name, value in zip(vars, item):
 *                     ns[name] = value
 *             try:             # <<<<<<<<<<<<<<
 *                 self._interpret_codes(content, ns, out, defs)
 *             except _TemplateContinue:
*/
      __pyx_L14_except_error:;
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_XGIVEREF(__pyx_t_17);
      __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
      goto __pyx_L1_error;
      __pyx_L17_try_break:;
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_XGIVEREF(__pyx_t_17);
      __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
      goto __pyx_L4_break;
      __pyx_L18_try_continue:;
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_XGIVEREF(__pyx_t_17);
      __Pyx_ExceptionReset(__pyx_t_15, __pyx_t_16, __pyx_t_17);
      goto __pyx_L3_continue;
      __pyx_L19_try_end:;
    }

    /* "Cython/Tempita/_tempita.py":272
 *     def _interpret_for(self, vars, expr, content, ns, out, defs):
 *         __traceback_hide__ = True
 *         for item in expr:             # <<<<<<<<<<<<<<
 *             if len(vars) == 1:
 *                 ns[vars[0]] = item
*/
    __pyx_L3_continue:;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L24_for_end;
  __pyx_L4_break:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L24_for_end;
  __pyx_L24_for_end:;

  /* "Cython/Tempita/_tempita.py":270
 *             assert 0, "Unknown code: %r" % name
 * 
 *     def _interpret_for(self, vars, expr, content, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         for item in expr:
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_for", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":289
 *                 break
 * 
 *     def _interpret_if(self, parts, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         # @@: if/else/else gets through
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_19_interpret_if(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_19_interpret_if = {"_interpret_if", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_19_interpret_if, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_19_interpret_if(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_parts = 0;
  PyObject *__pyx_v_ns = 0;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_v_defs = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_interpret_if (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_parts,&__pyx_mstate_global->__pyx_n_u_ns,&__pyx_mstate_global->__pyx_n_u_out,&__pyx_mstate_global->__pyx_n_u_defs,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 289, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 289, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_interpret_if", 0) < (0)) __PYX_ERR(0, 289, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_interpret_if", 1, 5, 5, i); __PYX_ERR(0, 289, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 289, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 289, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 289, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 289, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 289, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_parts = values[1];
    __pyx_v_ns = values[2];
    __pyx_v_out = values[3];
    __pyx_v_defs = values[4];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_interpret_if", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 289, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_if", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_18_interpret_if(__pyx_self, __pyx_v_self, __pyx_v_parts, __pyx_v_ns, __pyx_v_out, __pyx_v_defs);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_18_interpret_if(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parts, PyObject *__pyx_v_ns, PyObject *__pyx_v_out, PyObject *__pyx_v_defs) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_part = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_pos = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_interpret_if", 0);

  /* "Cython/Tempita/_tempita.py":290
 * 
 *     def _interpret_if(self, parts, ns, out, defs):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         # @@: if/else/else gets through
 *         for part in parts:
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":292
 *         __traceback_hide__ = True
 *         # @@: if/else/else gets through
 *         for part in parts:             # <<<<<<<<<<<<<<
 *             assert not isinstance(part, str)
 *             name, pos = part[0], part[1]
*/
  if (likely(PyList_CheckExact(__pyx_v_parts)) || PyTuple_CheckExact(__pyx_v_parts)) {
    __pyx_t_1 = __pyx_v_parts; __Pyx_INCREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_parts); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 292, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 292, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_1, __pyx_t_2, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_2;
      } else {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_1);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 292, __pyx_L1_error)
          #endif
          if (__pyx_t_2 >= __pyx_temp) break;
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2));
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(__pyx_t_1, __pyx_t_2);
        #endif
        ++__pyx_t_2;
      }
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 292, __pyx_L1_error)
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 292, __pyx_L1_error)
          PyErr_Clear();
        }
        break;
      }
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_part, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":293
 *         # @@: if/else/else gets through
 *         for part in parts:
 *             assert not isinstance(part, str)             # <<<<<<<<<<<<<<
 *             name, pos = part[0], part[1]
 *             if name == 'else':
*/
    #ifndef CYTHON_WITHOUT_ASSERTIONS
    if (unlikely(__pyx_assertions_enabled())) {
      __pyx_t_5 = PyUnicode_Check(__pyx_v_part); 
      __pyx_t_6 = (!__pyx_t_5);


      if (unlikely(!__pyx_t_6)) {
        __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
        __PYX_ERR(0, 293, __pyx_L1_error)
      }

    }
    #else
    if ((1)); else __PYX_ERR(0, 293, __pyx_L1_error)
    #endif

    /* "Cython/Tempita/_tempita.py":294
 *         for part in parts:
 *             assert not isinstance(part, str)
 *             name, pos = part[0], part[1]             # <<<<<<<<<<<<<<
 *             if name == 'else':
 *                 result = True
*/
    __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_part, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_part, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_pos, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "Cython/Tempita/_tempita.py":295
 *             assert not isinstance(part, str)
 *             name, pos = part[0], part[1]
 *             if name == 'else':             # <<<<<<<<<<<<<<
 *                 result = True
 *             else:
*/
    __pyx_t_6 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_name, __pyx_mstate_global->__pyx_n_u_else, Py_EQ); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 295, __pyx_L1_error)
    if (__pyx_t_6) {


      /* "Cython/Tempita/_tempita.py":296
 *             name, pos = part[0], part[1]
 *             if name == 'else':
 *                 result = True             # <<<<<<<<<<<<<<
 *             else:
 *                 result = self._eval(part[2], ns, pos)
*/
      __Pyx_INCREF(Py_True);
      __Pyx_XDECREF_SET(__pyx_v_result, Py_True);

      /* "Cython/Tempita/_tempita.py":295
 *             assert not isinstance(part, str)
 *             name, pos = part[0], part[1]
 *             if name == 'else':             # <<<<<<<<<<<<<<
 *                 result = True
 *             else:
*/
      goto __pyx_L5;
    }

    /* "Cython/Tempita/_tempita.py":298
 *                 result = True
 *             else:
 *                 result = self._eval(part[2], ns, pos)             # <<<<<<<<<<<<<<
 *             if result:
 *                 self._interpret_codes(part[3], ns, out, defs)
*/
    /*else*/ {
      __pyx_t_4 = __pyx_v_self;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_8 = __Pyx_GetItemInt(__pyx_v_part, 2, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 298, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_t_8, __pyx_v_ns, __pyx_v_pos};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_eval_2, __pyx_callargs+__pyx_t_9, (4-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 298, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_XDECREF_SET(__pyx_v_result, __pyx_t_7);
      __pyx_t_7 = 0;
    }
    __pyx_L5:;

    /* "Cython/Tempita/_tempita.py":299
 *             else:
 *                 result = self._eval(part[2], ns, pos)
 *             if result:             # <<<<<<<<<<<<<<
 *                 self._interpret_codes(part[3], ns, out, defs)
 *                 break
*/
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_result); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 299, __pyx_L1_error)
    if (__pyx_t_6) {


      /* "Cython/Tempita/_tempita.py":300
 *                 result = self._eval(part[2], ns, pos)
 *             if result:
 *                 self._interpret_codes(part[3], ns, out, defs)             # <<<<<<<<<<<<<<
 *                 break
 * 
*/
      __pyx_t_8 = __pyx_v_self;
      __Pyx_INCREF(__pyx_t_8);
      __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_part, 3, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 300, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_8, __pyx_t_4, __pyx_v_ns, __pyx_v_out, __pyx_v_defs};
        __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_codes, __pyx_callargs+__pyx_t_9, (5-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 300, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "Cython/Tempita/_tempita.py":301
 *             if result:
 *                 self._interpret_codes(part[3], ns, out, defs)
 *                 break             # <<<<<<<<<<<<<<
 * 
 *     def _eval(self, code, ns, pos):
*/
      goto __pyx_L4_break;

      /* "Cython/Tempita/_tempita.py":299
 *             else:
 *                 result = self._eval(part[2], ns, pos)
 *             if result:             # <<<<<<<<<<<<<<
 *                 self._interpret_codes(part[3], ns, out, defs)
 *                 break
*/
    }

    /* "Cython/Tempita/_tempita.py":292
 *         __traceback_hide__ = True
 *         # @@: if/else/else gets through
 *         for part in parts:             # <<<<<<<<<<<<<<
 *             assert not isinstance(part, str)
 *             name, pos = part[0], part[1]
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L7_for_end;
  __pyx_L4_break:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  goto __pyx_L7_for_end;
  __pyx_L7_for_end:;

  /* "Cython/Tempita/_tempita.py":289
 *                 break
 * 
 *     def _interpret_if(self, parts, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         # @@: if/else/else gets through
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._interpret_if", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_part);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_pos);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":303
 *                 break
 * 
 *     def _eval(self, code, ns, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_21_eval(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_21_eval = {"_eval", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_21_eval, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_21_eval(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_v_ns = 0;
  PyObject *__pyx_v_pos = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_eval (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_code,&__pyx_mstate_global->__pyx_n_u_ns,&__pyx_mstate_global->__pyx_n_u_pos,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 303, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 303, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_eval", 0) < (0)) __PYX_ERR(0, 303, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_eval", 1, 4, 4, i); __PYX_ERR(0, 303, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 303, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 303, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 303, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 303, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_code = values[1];
    __pyx_v_ns = values[2];
    __pyx_v_pos = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_eval", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 303, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._eval", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_20_eval(__pyx_self, __pyx_v_self, __pyx_v_code, __pyx_v_ns, __pyx_v_pos);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_20_eval(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_ns, PyObject *__pyx_v_pos) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_e = NULL;
  PyObject *__pyx_v_arg0 = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  char const *__pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  int __pyx_t_23;
  int __pyx_t_24;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_eval", 0);

  /* "Cython/Tempita/_tempita.py":304
 * 
 *     def _eval(self, code, ns, pos):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         try:
 *             try:
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":305
 *     def _eval(self, code, ns, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             try:
 *                 value = eval(code, self.default_namespace, ns)
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "Cython/Tempita/_tempita.py":306
 *         __traceback_hide__ = True
 *         try:
 *             try:             # <<<<<<<<<<<<<<
 *                 value = eval(code, self.default_namespace, ns)
 *             except SyntaxError as e:
*/
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_4);
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_6);
        /*try:*/ {

          /* "Cython/Tempita/_tempita.py":307
 *         try:
 *             try:
 *                 value = eval(code, self.default_namespace, ns)             # <<<<<<<<<<<<<<
 *             except SyntaxError as e:
 *                 raise SyntaxError(
*/
          __pyx_t_8 = NULL;
          __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 307, __pyx_L9_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_10 = 1;
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_8, __pyx_v_code, __pyx_t_9, __pyx_v_ns};
            __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_eval, __pyx_callargs+__pyx_t_10, (4-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 307, __pyx_L9_error)
            __Pyx_GOTREF(__pyx_t_7);
          }
          __pyx_v_value = __pyx_t_7;
          __pyx_t_7 = 0;

          /* "Cython/Tempita/_tempita.py":306
 *         __traceback_hide__ = True
 *         try:
 *             try:             # <<<<<<<<<<<<<<
 *                 value = eval(code, self.default_namespace, ns)
 *             except SyntaxError as e:
*/
        }
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L14_try_end;
        __pyx_L9_error:;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

        /* "Cython/Tempita/_tempita.py":308
 *             try:
 *                 value = eval(code, self.default_namespace, ns)
 *             except SyntaxError as e:             # <<<<<<<<<<<<<<
 *                 raise SyntaxError(
 *                     'invalid syntax in expression: %s' % code)
*/
        __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_SyntaxError))));
        if (__pyx_t_11) {
          __Pyx_AddTraceback("Cython.Tempita._tempita.Template._eval", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_9, &__pyx_t_8) < 0) __PYX_ERR(0, 308, __pyx_L11_except_error)
          __Pyx_XGOTREF(__pyx_t_7);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_9);
          __pyx_v_e = ((PyObject*)__pyx_t_9);
          /*try:*/ {

            /* "Cython/Tempita/_tempita.py":309
 *                 value = eval(code, self.default_namespace, ns)
 *             except SyntaxError as e:
 *                 raise SyntaxError(             # <<<<<<<<<<<<<<
 *                     'invalid syntax in expression: %s' % code)
 *             return value
*/
            __pyx_t_13 = NULL;

            /* "Cython/Tempita/_tempita.py":310
 *             except SyntaxError as e:
 *                 raise SyntaxError(
 *                     'invalid syntax in expression: %s' % code)             # <<<<<<<<<<<<<<
 *             return value
 *         except Exception as e:
*/
            __pyx_t_14 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_invalid_syntax_in_expression_s, __pyx_v_code); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 310, __pyx_L20_error)
            __Pyx_GOTREF(__pyx_t_14);
            __pyx_t_10 = 1;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_t_14};
              __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_SyntaxError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
              if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 309, __pyx_L20_error)
              __Pyx_GOTREF(__pyx_t_12);
            }
            __Pyx_Raise(__pyx_t_12, 0, 0, 0);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            __PYX_ERR(0, 309, __pyx_L20_error)
          }

          /* "Cython/Tempita/_tempita.py":308
 *             try:
 *                 value = eval(code, self.default_namespace, ns)
 *             except SyntaxError as e:             # <<<<<<<<<<<<<<
 *                 raise SyntaxError(
 *                     'invalid syntax in expression: %s' % code)
*/
          /*finally:*/ {
            __pyx_L20_error:;
            /*exception exit:*/{
              __Pyx_PyThreadState_declare
              __Pyx_PyThreadState_assign
              __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0;
              __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
               __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22);
              if ( unlikely(__Pyx_GetException(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
              __Pyx_XGOTREF(__pyx_t_17);
              __Pyx_XGOTREF(__pyx_t_18);
              __Pyx_XGOTREF(__pyx_t_19);
              __Pyx_XGOTREF(__pyx_t_20);
              __Pyx_XGOTREF(__pyx_t_21);
              __Pyx_XGOTREF(__pyx_t_22);
              __pyx_t_11 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
              {
                __Pyx_DECREF(__pyx_v_e); __pyx_v_e = 0;
              }
              __Pyx_XGIVEREF(__pyx_t_20);
              __Pyx_XGIVEREF(__pyx_t_21);
              __Pyx_XGIVEREF(__pyx_t_22);
              __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_21, __pyx_t_22);
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_ErrRestore(__pyx_t_17, __pyx_t_18, __pyx_t_19);
              __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0;
              __pyx_lineno = __pyx_t_11; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16;
              goto __pyx_L11_except_error;
            }
          }
        }
        goto __pyx_L11_except_error;

        /* "Cython/Tempita/_tempita.py":306
 *         __traceback_hide__ = True
 *         try:
 *             try:             # <<<<<<<<<<<<<<
 *                 value = eval(code, self.default_namespace, ns)
 *             except SyntaxError as e:
*/
        __pyx_L11_except_error:;
        __Pyx_XGIVEREF(__pyx_t_4);
        __Pyx_XGIVEREF(__pyx_t_5);
        __Pyx_XGIVEREF(__pyx_t_6);
        __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
        goto __pyx_L3_error;
        __pyx_L14_try_end:;
      }

      /* "Cython/Tempita/_tempita.py":311
 *                 raise SyntaxError(
 *                     'invalid syntax in expression: %s' % code)
 *             return value             # <<<<<<<<<<<<<<
 *         except Exception as e:
 *             if getattr(e, 'args', None):
*/
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __Pyx_INCREF(__pyx_v_value);
          __pyx_r = __pyx_v_value;
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      goto __pyx_L7_try_return;

      /* "Cython/Tempita/_tempita.py":305
 *     def _eval(self, code, ns, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             try:
 *                 value = eval(code, self.default_namespace, ns)
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "Cython/Tempita/_tempita.py":312
 *                     'invalid syntax in expression: %s' % code)
 *             return value
 *         except Exception as e:             # <<<<<<<<<<<<<<
 *             if getattr(e, 'args', None):
 *                 arg0 = e.args[0]
*/
    __pyx_t_15 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception))));
    if (__pyx_t_15) {
      __Pyx_AddTraceback("Cython.Tempita._tempita.Template._eval", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_9, &__pyx_t_7) < 0) __PYX_ERR(0, 312, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_9);
      __Pyx_XDECREF_SET(__pyx_v_e, __pyx_t_9);
      /*try:*/ {

        /* "Cython/Tempita/_tempita.py":313
 *             return value
 *         except Exception as e:
 *             if getattr(e, 'args', None):             # <<<<<<<<<<<<<<
 *                 arg0 = e.args[0]
 *             else:
*/
        __pyx_t_12 = __Pyx_GetAttr3(__pyx_v_e, __pyx_mstate_global->__pyx_n_u_args, Py_None); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 313, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_12);
        __pyx_t_23 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely((__pyx_t_23 < 0))) __PYX_ERR(0, 313, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
        if (__pyx_t_23) {


          /* "Cython/Tempita/_tempita.py":314
 *         except Exception as e:
 *             if getattr(e, 'args', None):
 *                 arg0 = e.args[0]             # <<<<<<<<<<<<<<
 *             else:
 *                 arg0 = coerce_text(e)
*/
          __pyx_t_12 = __Pyx_PyException_get_args(__pyx_v_e); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 314, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_12);
          __pyx_t_14 = __Pyx_GetItemInt(__pyx_t_12, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 314, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __pyx_v_arg0 = __pyx_t_14;
          __pyx_t_14 = 0;

          /* "Cython/Tempita/_tempita.py":313
 *             return value
 *         except Exception as e:
 *             if getattr(e, 'args', None):             # <<<<<<<<<<<<<<
 *                 arg0 = e.args[0]
 *             else:
*/
          goto __pyx_L33;
        }

        /* "Cython/Tempita/_tempita.py":316
 *                 arg0 = e.args[0]
 *             else:
 *                 arg0 = coerce_text(e)             # <<<<<<<<<<<<<<
 *             e.args = (self._add_line_info(arg0, pos),)
 *             raise
*/
        /*else*/ {
          __pyx_t_12 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_coerce_text); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 316, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_13);
          __pyx_t_10 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_13))) {
            __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_13);
            assert(__pyx_t_12);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
            __Pyx_INCREF(__pyx_t_12);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
            __pyx_t_10 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_e};
            __pyx_t_14 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
            __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 316, __pyx_L31_error)
            __Pyx_GOTREF(__pyx_t_14);
          }
          __pyx_v_arg0 = __pyx_t_14;
          __pyx_t_14 = 0;
        }
        __pyx_L33:;

        /* "Cython/Tempita/_tempita.py":317
 *             else:
 *                 arg0 = coerce_text(e)
 *             e.args = (self._add_line_info(arg0, pos),)             # <<<<<<<<<<<<<<
 *             raise
 * 
*/
        __pyx_t_13 = __pyx_v_self;
        __Pyx_INCREF(__pyx_t_13);
        __pyx_t_10 = 0;
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_v_arg0, __pyx_v_pos};
          __pyx_t_14 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add_line_info, __pyx_callargs+__pyx_t_10, (3-__pyx_t_10) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 317, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_14);
        }
        __pyx_t_13 = PyTuple_New(1); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 317, __pyx_L31_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_GIVEREF(__pyx_t_14);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_14) != (0)) __PYX_ERR(0, 317, __pyx_L31_error);
        __pyx_t_14 = 0;
        __pyx_t_24 = __Pyx_PyException_set_args(__pyx_v_e, __pyx_t_13); if (unlikely(__pyx_t_24 == ((int)-1))) __PYX_ERR(0, 317, __pyx_L31_error)
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;

        /* "Cython/Tempita/_tempita.py":318
 *                 arg0 = coerce_text(e)
 *             e.args = (self._add_line_info(arg0, pos),)
 *             raise             # <<<<<<<<<<<<<<
 * 
 *     def _exec(self, code, ns, pos):
*/
        __Pyx_GIVEREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_ErrRestoreWithState(__pyx_t_8, __pyx_t_9, __pyx_t_7);
        __pyx_t_8 = 0;  __pyx_t_9 = 0;  __pyx_t_7 = 0; 
        __PYX_ERR(0, 318, __pyx_L31_error)
      }

      /* "Cython/Tempita/_tempita.py":312
 *                     'invalid syntax in expression: %s' % code)
 *             return value
 *         except Exception as e:             # <<<<<<<<<<<<<<
 *             if getattr(e, 'args', None):
 *                 arg0 = e.args[0]
*/
      /*finally:*/ {
        __pyx_L31_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_t_4 = 0; __pyx_t_22 = 0; __pyx_t_21 = 0; __pyx_t_20 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
           __Pyx_ExceptionSwap(&__pyx_t_22, &__pyx_t_21, &__pyx_t_20);
          if ( unlikely(__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0)) __Pyx_ErrFetch(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4);
          __Pyx_XGOTREF(__pyx_t_6);
          __Pyx_XGOTREF(__pyx_t_5);
          __Pyx_XGOTREF(__pyx_t_4);
          __Pyx_XGOTREF(__pyx_t_22);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_20);
          __pyx_t_15 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_e); __pyx_v_e = 0;
          }
          __Pyx_XGIVEREF(__pyx_t_22);
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_ExceptionReset(__pyx_t_22, __pyx_t_21, __pyx_t_20);
          __Pyx_XGIVEREF(__pyx_t_6);
          __Pyx_XGIVEREF(__pyx_t_5);
          __Pyx_XGIVEREF(__pyx_t_4);
          __Pyx_ErrRestore(__pyx_t_6, __pyx_t_5, __pyx_t_4);
          __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_t_4 = 0; __pyx_t_22 = 0; __pyx_t_21 = 0; __pyx_t_20 = 0;
          __pyx_lineno = __pyx_t_15; __pyx_clineno = __pyx_t_11; __pyx_filename = __pyx_t_16;
          goto __pyx_L5_except_error;
        }
      }
    }
    goto __pyx_L5_except_error;

    /* "Cython/Tempita/_tempita.py":305
 *     def _eval(self, code, ns, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             try:
 *                 value = eval(code, self.default_namespace, ns)
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "Cython/Tempita/_tempita.py":303
 *                 break
 * 
 *     def _eval(self, code, ns, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._eval", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_e);
  __Pyx_XDECREF(__pyx_v_arg0);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":320
 *             raise
 * 
 *     def _exec(self, code, ns, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_23_exec(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_23_exec = {"_exec", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_23_exec, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_23_exec(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_v_ns = 0;
  PyObject *__pyx_v_pos = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_exec (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_code,&__pyx_mstate_global->__pyx_n_u_ns,&__pyx_mstate_global->__pyx_n_u_pos,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 320, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 320, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_exec", 0) < (0)) __PYX_ERR(0, 320, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_exec", 1, 4, 4, i); __PYX_ERR(0, 320, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 320, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 320, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 320, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 320, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_code = values[1];
    __pyx_v_ns = values[2];
    __pyx_v_pos = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_exec", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 320, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._exec", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_22_exec(__pyx_self, __pyx_v_self, __pyx_v_code, __pyx_v_ns, __pyx_v_pos);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_22_exec(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_code, PyObject *__pyx_v_ns, PyObject *__pyx_v_pos) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_e = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  size_t __pyx_t_13;
  int __pyx_t_14;
  int __pyx_t_15;
  char const *__pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_exec", 0);

  /* "Cython/Tempita/_tempita.py":321
 * 
 *     def _exec(self, code, ns, pos):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         try:
 *             exec(code, self.default_namespace, ns)
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":322
 *     def _exec(self, code, ns, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             exec(code, self.default_namespace, ns)
 *         except Exception as e:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "Cython/Tempita/_tempita.py":323
 *         __traceback_hide__ = True
 *         try:
 *             exec(code, self.default_namespace, ns)             # <<<<<<<<<<<<<<
 *         except Exception as e:
 *             if e.args:
*/
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 323, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyExec3(__pyx_v_code, __pyx_t_4, __pyx_v_ns); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 323, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":322
 *     def _exec(self, code, ns, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             exec(code, self.default_namespace, ns)
 *         except Exception as e:
*/
    }
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "Cython/Tempita/_tempita.py":324
 *         try:
 *             exec(code, self.default_namespace, ns)
 *         except Exception as e:             # <<<<<<<<<<<<<<
 *             if e.args:
 *                 e.args = (self._add_line_info(e.args[0], pos),)
*/
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception))));
    if (__pyx_t_6) {
      __Pyx_AddTraceback("Cython.Tempita._tempita.Template._exec", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_7) < 0) __PYX_ERR(0, 324, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_v_e = __pyx_t_4;
      /*try:*/ {

        /* "Cython/Tempita/_tempita.py":325
 *             exec(code, self.default_namespace, ns)
 *         except Exception as e:
 *             if e.args:             # <<<<<<<<<<<<<<
 *                 e.args = (self._add_line_info(e.args[0], pos),)
 *             else:
*/
        __pyx_t_8 = __Pyx_PyException_get_args(__pyx_v_e); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 325, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 325, __pyx_L14_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (__pyx_t_9) {


          /* "Cython/Tempita/_tempita.py":326
 *         except Exception as e:
 *             if e.args:
 *                 e.args = (self._add_line_info(e.args[0], pos),)             # <<<<<<<<<<<<<<
 *             else:
 *                 e.args = (self._add_line_info(None, pos),)
*/
          __pyx_t_10 = __pyx_v_self;
          __Pyx_INCREF(__pyx_t_10);
          __pyx_t_11 = __Pyx_PyException_get_args(__pyx_v_e); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 326, __pyx_L14_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_12 = __Pyx_GetItemInt(__pyx_t_11, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 326, __pyx_L14_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          __pyx_t_13 = 0;
          {
            PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_t_12, __pyx_v_pos};
            __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add_line_info, __pyx_callargs+__pyx_t_13, (3-__pyx_t_13) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 326, __pyx_L14_error)
            __Pyx_GOTREF(__pyx_t_8);
          }
          __pyx_t_12 = PyTuple_New(1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 326, __pyx_L14_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_GIVEREF(__pyx_t_8);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_8) != (0)) __PYX_ERR(0, 326, __pyx_L14_error);
          __pyx_t_8 = 0;
          __pyx_t_14 = __Pyx_PyException_set_args(__pyx_v_e, __pyx_t_12); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 326, __pyx_L14_error)
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;

          /* "Cython/Tempita/_tempita.py":325
 *             exec(code, self.default_namespace, ns)
 *         except Exception as e:
 *             if e.args:             # <<<<<<<<<<<<<<
 *                 e.args = (self._add_line_info(e.args[0], pos),)
 *             else:
*/
          goto __pyx_L16;
        }

        /* "Cython/Tempita/_tempita.py":328
 *                 e.args = (self._add_line_info(e.args[0], pos),)
 *             else:
 *                 e.args = (self._add_line_info(None, pos),)             # <<<<<<<<<<<<<<
 *             raise
 * 
*/
        /*else*/ {
          __pyx_t_8 = __pyx_v_self;
          __Pyx_INCREF(__pyx_t_8);
          __pyx_t_13 = 0;
          {
            PyObject *__pyx_callargs[3] = {__pyx_t_8, Py_None, __pyx_v_pos};
            __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add_line_info, __pyx_callargs+__pyx_t_13, (3-__pyx_t_13) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
            if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 328, __pyx_L14_error)
            __Pyx_GOTREF(__pyx_t_12);
          }
          __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 328, __pyx_L14_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_GIVEREF(__pyx_t_12);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_12) != (0)) __PYX_ERR(0, 328, __pyx_L14_error);
          __pyx_t_12 = 0;
          __pyx_t_14 = __Pyx_PyException_set_args(__pyx_v_e, __pyx_t_8); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 328, __pyx_L14_error)
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        }
        __pyx_L16:;

        /* "Cython/Tempita/_tempita.py":329
 *             else:
 *                 e.args = (self._add_line_info(None, pos),)
 *             raise             # <<<<<<<<<<<<<<
 * 
 *     def _repr(self, value, pos):
*/
        __Pyx_GIVEREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_4);
        __Pyx_XGIVEREF(__pyx_t_7);
        __Pyx_ErrRestoreWithState(__pyx_t_5, __pyx_t_4, __pyx_t_7);
        __pyx_t_5 = 0;  __pyx_t_4 = 0;  __pyx_t_7 = 0; 
        __PYX_ERR(0, 329, __pyx_L14_error)
      }

      /* "Cython/Tempita/_tempita.py":324
 *         try:
 *             exec(code, self.default_namespace, ns)
 *         except Exception as e:             # <<<<<<<<<<<<<<
 *             if e.args:
 *                 e.args = (self._add_line_info(e.args[0], pos),)
*/
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
           __Pyx_ExceptionSwap(&__pyx_t_20, &__pyx_t_21, &__pyx_t_22);
          if ( unlikely(__Pyx_GetException(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19) < 0)) __Pyx_ErrFetch(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __Pyx_XGOTREF(__pyx_t_20);
          __Pyx_XGOTREF(__pyx_t_21);
          __Pyx_XGOTREF(__pyx_t_22);
          __pyx_t_6 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_e); __pyx_v_e = 0;
          }
          __Pyx_XGIVEREF(__pyx_t_20);
          __Pyx_XGIVEREF(__pyx_t_21);
          __Pyx_XGIVEREF(__pyx_t_22);
          __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_21, __pyx_t_22);
          __Pyx_XGIVEREF(__pyx_t_17);
          __Pyx_XGIVEREF(__pyx_t_18);
          __Pyx_XGIVEREF(__pyx_t_19);
          __Pyx_ErrRestore(__pyx_t_17, __pyx_t_18, __pyx_t_19);
          __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0;
          __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16;
          goto __pyx_L5_except_error;
        }
      }
    }
    goto __pyx_L5_except_error;

    /* "Cython/Tempita/_tempita.py":322
 *     def _exec(self, code, ns, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             exec(code, self.default_namespace, ns)
 *         except Exception as e:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L8_try_end:;
  }

  /* "Cython/Tempita/_tempita.py":320
 *             raise
 * 
 *     def _exec(self, code, ns, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._exec", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_e);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":331
 *             raise
 * 
 *     def _repr(self, value, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_25_repr(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_25_repr = {"_repr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_25_repr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_25_repr(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_pos = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_repr (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_pos,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 331, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_repr", 0) < (0)) __PYX_ERR(0, 331, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_repr", 1, 3, 3, i); __PYX_ERR(0, 331, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 331, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 331, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 331, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_value = values[1];
    __pyx_v_pos = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_repr", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 331, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._repr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_24_repr(__pyx_self, __pyx_v_self, __pyx_v_value, __pyx_v_pos);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_24_repr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_value, PyObject *__pyx_v_pos) {
  CYTHON_UNUSED int __pyx_v___traceback_hide__;
  PyObject *__pyx_v_e = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  size_t __pyx_t_14;
  int __pyx_t_15;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  PyObject *__pyx_t_20 = NULL;
  PyObject *__pyx_t_21 = NULL;
  PyObject *__pyx_t_22 = NULL;
  int __pyx_t_23;
  char const *__pyx_t_24;
  PyObject *__pyx_t_25 = NULL;
  PyObject *__pyx_t_26 = NULL;
  PyObject *__pyx_t_27 = NULL;
  PyObject *__pyx_t_28 = NULL;
  PyObject *__pyx_t_29 = NULL;
  PyObject *__pyx_t_30 = NULL;
  int __pyx_t_31;
  int __pyx_t_32;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_repr", 0);
  __Pyx_INCREF(__pyx_v_value);

  /* "Cython/Tempita/_tempita.py":332
 * 
 *     def _repr(self, value, pos):
 *         __traceback_hide__ = True             # <<<<<<<<<<<<<<
 *         try:
 *             if value is None:
*/
  __pyx_v___traceback_hide__ = 1;

  /* "Cython/Tempita/_tempita.py":333
 *     def _repr(self, value, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             if value is None:
 *                 return ''
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "Cython/Tempita/_tempita.py":334
 *         __traceback_hide__ = True
 *         try:
 *             if value is None:             # <<<<<<<<<<<<<<
 *                 return ''
 *             if self._unicode:
*/
      __pyx_t_4 = (__pyx_v_value == Py_None);
      if (__pyx_t_4) {


        /* "Cython/Tempita/_tempita.py":335
 *         try:
 *             if value is None:
 *                 return ''             # <<<<<<<<<<<<<<
 *             if self._unicode:
 *                 try:
*/
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
            __pyx_r = __pyx_mstate_global->__pyx_kp_u__5;
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        goto __pyx_L7_try_return;

        /* "Cython/Tempita/_tempita.py":334
 *         __traceback_hide__ = True
 *         try:
 *             if value is None:             # <<<<<<<<<<<<<<
 *                 return ''
 *             if self._unicode:
*/
      }

      /* "Cython/Tempita/_tempita.py":336
 *             if value is None:
 *                 return ''
 *             if self._unicode:             # <<<<<<<<<<<<<<
 *                 try:
 *                     value = str(value)
*/
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 336, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 336, __pyx_L3_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_4) {


        /* "Cython/Tempita/_tempita.py":337
 *                 return ''
 *             if self._unicode:
 *                 try:             # <<<<<<<<<<<<<<
 *                     value = str(value)
 *                 except UnicodeDecodeError:
*/
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
          __Pyx_XGOTREF(__pyx_t_6);
          __Pyx_XGOTREF(__pyx_t_7);
          __Pyx_XGOTREF(__pyx_t_8);
          /*try:*/ {

            /* "Cython/Tempita/_tempita.py":338
 *             if self._unicode:
 *                 try:
 *                     value = str(value)             # <<<<<<<<<<<<<<
 *                 except UnicodeDecodeError:
 *                     value = bytes(value)
*/
            __pyx_t_5 = __Pyx_PyObject_Unicode(__pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 338, __pyx_L11_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_5);
            __pyx_t_5 = 0;

            /* "Cython/Tempita/_tempita.py":337
 *                 return ''
 *             if self._unicode:
 *                 try:             # <<<<<<<<<<<<<<
 *                     value = str(value)
 *                 except UnicodeDecodeError:
*/
          }
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          goto __pyx_L16_try_end;
          __pyx_L11_error:;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

          /* "Cython/Tempita/_tempita.py":339
 *                 try:
 *                     value = str(value)
 *                 except UnicodeDecodeError:             # <<<<<<<<<<<<<<
 *                     value = bytes(value)
 *             else:
*/
          __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_UnicodeDecodeError))));
          if (__pyx_t_9) {
            __Pyx_AddTraceback("Cython.Tempita._tempita.Template._repr", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_10, &__pyx_t_11) < 0) __PYX_ERR(0, 339, __pyx_L13_except_error)
            __Pyx_XGOTREF(__pyx_t_5);
            __Pyx_XGOTREF(__pyx_t_10);
            __Pyx_XGOTREF(__pyx_t_11);

            /* "Cython/Tempita/_tempita.py":340
 *                     value = str(value)
 *                 except UnicodeDecodeError:
 *                     value = bytes(value)             # <<<<<<<<<<<<<<
 *             else:
 *                 if not isinstance(value, str):
*/
            __pyx_t_13 = NULL;
            __pyx_t_14 = 1;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_v_value};
              __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)(&PyBytes_Type), __pyx_callargs+__pyx_t_14, (2-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 340, __pyx_L13_except_error)
              __Pyx_GOTREF(__pyx_t_12);
            }
            __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_12);
            __pyx_t_12 = 0;
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            goto __pyx_L12_exception_handled;
          }
          goto __pyx_L13_except_error;

          /* "Cython/Tempita/_tempita.py":337
 *                 return ''
 *             if self._unicode:
 *                 try:             # <<<<<<<<<<<<<<
 *                     value = str(value)
 *                 except UnicodeDecodeError:
*/
          __pyx_L13_except_error:;
          __Pyx_XGIVEREF(__pyx_t_6);
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
          goto __pyx_L3_error;
          __pyx_L12_exception_handled:;
          __Pyx_XGIVEREF(__pyx_t_6);
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
          __pyx_L16_try_end:;
        }

        /* "Cython/Tempita/_tempita.py":336
 *             if value is None:
 *                 return ''
 *             if self._unicode:             # <<<<<<<<<<<<<<
 *                 try:
 *                     value = str(value)
*/
        goto __pyx_L10;
      }

      /* "Cython/Tempita/_tempita.py":342
 *                     value = bytes(value)
 *             else:
 *                 if not isinstance(value, str):             # <<<<<<<<<<<<<<
 *                     value = coerce_text(value)
 *                 if (isinstance(value, str)
*/
      /*else*/ {
        __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
        __pyx_t_15 = (!__pyx_t_4);


        if (__pyx_t_15) {


          /* "Cython/Tempita/_tempita.py":343
 *             else:
 *                 if not isinstance(value, str):
 *                     value = coerce_text(value)             # <<<<<<<<<<<<<<
 *                 if (isinstance(value, str)
 *                         and self.default_encoding):
*/
          __pyx_t_10 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_coerce_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 343, __pyx_L3_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_14 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_5))) {
            __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_5);
            assert(__pyx_t_10);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_10);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
            __pyx_t_14 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_v_value};
            __pyx_t_11 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_14, (2-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 343, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_11);
          }
          __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_11);
          __pyx_t_11 = 0;

          /* "Cython/Tempita/_tempita.py":342
 *                     value = bytes(value)
 *             else:
 *                 if not isinstance(value, str):             # <<<<<<<<<<<<<<
 *                     value = coerce_text(value)
 *                 if (isinstance(value, str)
*/
        }

        /* "Cython/Tempita/_tempita.py":344
 *                 if not isinstance(value, str):
 *                     value = coerce_text(value)
 *                 if (isinstance(value, str)             # <<<<<<<<<<<<<<
 *                         and self.default_encoding):
 *                     value = value.encode(self.default_encoding)
*/
        __pyx_t_4 = PyUnicode_Check(__pyx_v_value); 
        if (__pyx_t_4) {

        } else {

          __pyx_t_15 = __pyx_t_4;

          goto __pyx_L21_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":345
 *                     value = coerce_text(value)
 *                 if (isinstance(value, str)
 *                         and self.default_encoding):             # <<<<<<<<<<<<<<
 *                     value = value.encode(self.default_encoding)
 *         except Exception as e:
*/
        __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_encoding); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 345, __pyx_L3_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 345, __pyx_L3_error)
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;

        __pyx_t_15 = __pyx_t_4;

        __pyx_L21_bool_binop_done:;

        /* "Cython/Tempita/_tempita.py":344
 *                 if not isinstance(value, str):
 *                     value = coerce_text(value)
 *                 if (isinstance(value, str)             # <<<<<<<<<<<<<<
 *                         and self.default_encoding):
 *                     value = value.encode(self.default_encoding)
*/
        if (__pyx_t_15) {


          /* "Cython/Tempita/_tempita.py":346
 *                 if (isinstance(value, str)
 *                         and self.default_encoding):
 *                     value = value.encode(self.default_encoding)             # <<<<<<<<<<<<<<
 *         except Exception as e:
 *             e.args = (self._add_line_info(e.args[0], pos),)
*/
          __pyx_t_5 = __pyx_v_value;
          __Pyx_INCREF(__pyx_t_5);
          __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_encoding); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 346, __pyx_L3_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_t_14 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_10};
            __pyx_t_11 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_14, (2-__pyx_t_14) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
            if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 346, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_11);
          }
          __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_11);
          __pyx_t_11 = 0;

          /* "Cython/Tempita/_tempita.py":344
 *                 if not isinstance(value, str):
 *                     value = coerce_text(value)
 *                 if (isinstance(value, str)             # <<<<<<<<<<<<<<
 *                         and self.default_encoding):
 *                     value = value.encode(self.default_encoding)
*/
        }
      }
      __pyx_L10:;

      /* "Cython/Tempita/_tempita.py":333
 *     def _repr(self, value, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             if value is None:
 *                 return ''
*/
    }

    /* "Cython/Tempita/_tempita.py":351
 *             raise
 *         else:
 *             if self._unicode and isinstance(value, bytes):             # <<<<<<<<<<<<<<
 *                 if not self.default_encoding:
 *                     raise UnicodeDecodeError(
*/
    /*else:*/ {
      __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_unicode); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 351, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 351, __pyx_L5_except_error)
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (__pyx_t_4) {

      } else {

        __pyx_t_15 = __pyx_t_4;

        goto __pyx_L24_bool_binop_done;
      }
      __pyx_t_4 = PyBytes_Check(__pyx_v_value); 

      __pyx_t_15 = __pyx_t_4;

      __pyx_L24_bool_binop_done:;
      if (__pyx_t_15) {


        /* "Cython/Tempita/_tempita.py":352
 *         else:
 *             if self._unicode and isinstance(value, bytes):
 *                 if not self.default_encoding:             # <<<<<<<<<<<<<<
 *                     raise UnicodeDecodeError(
 *                         'Cannot decode bytes value %r into unicode '
*/
        __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_encoding); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 352, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_15 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely((__pyx_t_15 < 0))) __PYX_ERR(0, 352, __pyx_L5_except_error)
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __pyx_t_4 = (!__pyx_t_15);


        if (unlikely(__pyx_t_4)) {


          /* "Cython/Tempita/_tempita.py":353
 *             if self._unicode and isinstance(value, bytes):
 *                 if not self.default_encoding:
 *                     raise UnicodeDecodeError(             # <<<<<<<<<<<<<<
 *                         'Cannot decode bytes value %r into unicode '
 *                         '(no default_encoding provided)' % value)
*/
          __pyx_t_10 = NULL;

          /* "Cython/Tempita/_tempita.py":355
 *                     raise UnicodeDecodeError(
 *                         'Cannot decode bytes value %r into unicode '
 *                         '(no default_encoding provided)' % value)             # <<<<<<<<<<<<<<
 *                 try:
 *                     value = value.decode(self.default_encoding)
*/
          __pyx_t_5 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Cannot_decode_bytes_value_r_into, __pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 355, __pyx_L5_except_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_14 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_5};
            __pyx_t_11 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_UnicodeDecodeError)), __pyx_callargs+__pyx_t_14, (2-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 353, __pyx_L5_except_error)
            __Pyx_GOTREF(__pyx_t_11);
          }
          __Pyx_Raise(__pyx_t_11, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          __PYX_ERR(0, 353, __pyx_L5_except_error)

          /* "Cython/Tempita/_tempita.py":352
 *         else:
 *             if self._unicode and isinstance(value, bytes):
 *                 if not self.default_encoding:             # <<<<<<<<<<<<<<
 *                     raise UnicodeDecodeError(
 *                         'Cannot decode bytes value %r into unicode '
*/
        }

        /* "Cython/Tempita/_tempita.py":356
 *                         'Cannot decode bytes value %r into unicode '
 *                         '(no default_encoding provided)' % value)
 *                 try:             # <<<<<<<<<<<<<<
 *                     value = value.decode(self.default_encoding)
 *                 except UnicodeDecodeError as e:
*/
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_7, &__pyx_t_6);
          __Pyx_XGOTREF(__pyx_t_8);
          __Pyx_XGOTREF(__pyx_t_7);
          __Pyx_XGOTREF(__pyx_t_6);
          /*try:*/ {

            /* "Cython/Tempita/_tempita.py":357
 *                         '(no default_encoding provided)' % value)
 *                 try:
 *                     value = value.decode(self.default_encoding)             # <<<<<<<<<<<<<<
 *                 except UnicodeDecodeError as e:
 *                     raise UnicodeDecodeError(
*/
            __pyx_t_5 = __pyx_v_value;
            __Pyx_INCREF(__pyx_t_5);
            __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_encoding); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 357, __pyx_L27_error)
            __Pyx_GOTREF(__pyx_t_10);
            __pyx_t_14 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_10};
              __pyx_t_11 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_decode, __pyx_callargs+__pyx_t_14, (2-__pyx_t_14) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
              __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
              if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 357, __pyx_L27_error)
              __Pyx_GOTREF(__pyx_t_11);
            }
            __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_11);
            __pyx_t_11 = 0;

            /* "Cython/Tempita/_tempita.py":356
 *                         'Cannot decode bytes value %r into unicode '
 *                         '(no default_encoding provided)' % value)
 *                 try:             # <<<<<<<<<<<<<<
 *                     value = value.decode(self.default_encoding)
 *                 except UnicodeDecodeError as e:
*/
          }
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          goto __pyx_L32_try_end;
          __pyx_L27_error:;
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

          /* "Cython/Tempita/_tempita.py":358
 *                 try:
 *                     value = value.decode(self.default_encoding)
 *                 except UnicodeDecodeError as e:             # <<<<<<<<<<<<<<
 *                     raise UnicodeDecodeError(
 *                         e.encoding,
*/
          __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_UnicodeDecodeError))));
          if (__pyx_t_9) {
            __Pyx_AddTraceback("Cython.Tempita._tempita.Template._repr", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_5) < 0) __PYX_ERR(0, 358, __pyx_L29_except_error)
            __Pyx_XGOTREF(__pyx_t_11);
            __Pyx_XGOTREF(__pyx_t_10);
            __Pyx_XGOTREF(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_10);
            __pyx_v_e = ((PyObject*)__pyx_t_10);
            /*try:*/ {

              /* "Cython/Tempita/_tempita.py":359
 *                     value = value.decode(self.default_encoding)
 *                 except UnicodeDecodeError as e:
 *                     raise UnicodeDecodeError(             # <<<<<<<<<<<<<<
 *                         e.encoding,
 *                         e.object,
*/
              __pyx_t_13 = NULL;

              /* "Cython/Tempita/_tempita.py":360
 *                 except UnicodeDecodeError as e:
 *                     raise UnicodeDecodeError(
 *                         e.encoding,             # <<<<<<<<<<<<<<
 *                         e.object,
 *                         e.start,
*/
              __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_mstate_global->__pyx_n_u_encoding); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 360, __pyx_L38_error)
              __Pyx_GOTREF(__pyx_t_16);

              /* "Cython/Tempita/_tempita.py":361
 *                     raise UnicodeDecodeError(
 *                         e.encoding,
 *                         e.object,             # <<<<<<<<<<<<<<
 *                         e.start,
 *                         e.end,
*/
              __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_mstate_global->__pyx_n_u_object); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 361, __pyx_L38_error)
              __Pyx_GOTREF(__pyx_t_17);

              /* "Cython/Tempita/_tempita.py":362
 *                         e.encoding,
 *                         e.object,
 *                         e.start,             # <<<<<<<<<<<<<<
 *                         e.end,
 *                         e.reason + ' in string %r' % value)
*/
              __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_mstate_global->__pyx_n_u_start); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 362, __pyx_L38_error)
              __Pyx_GOTREF(__pyx_t_18);

              /* "Cython/Tempita/_tempita.py":363
 *                         e.object,
 *                         e.start,
 *                         e.end,             # <<<<<<<<<<<<<<
 *                         e.reason + ' in string %r' % value)
 *             elif not self._unicode and isinstance(value, str):
*/
              __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_mstate_global->__pyx_n_u_end); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 363, __pyx_L38_error)
              __Pyx_GOTREF(__pyx_t_19);

              /* "Cython/Tempita/_tempita.py":364
 *                         e.start,
 *                         e.end,
 *                         e.reason + ' in string %r' % value)             # <<<<<<<<<<<<<<
 *             elif not self._unicode and isinstance(value, str):
 *                 if not self.default_encoding:
*/
              __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_mstate_global->__pyx_n_u_reason); if (unlikely(!__pyx_t_20)) __PYX_ERR(0, 364, __pyx_L38_error)
              __Pyx_GOTREF(__pyx_t_20);
              __pyx_t_21 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_in_string_r, __pyx_v_value); if (unlikely(!__pyx_t_21)) __PYX_ERR(0, 364, __pyx_L38_error)
              __Pyx_GOTREF(__pyx_t_21);
              __pyx_t_22 = PyNumber_Add(__pyx_t_20, __pyx_t_21); if (unlikely(!__pyx_t_22)) __PYX_ERR(0, 364, __pyx_L38_error)
              __Pyx_GOTREF(__pyx_t_22);
              __Pyx_DECREF(__pyx_t_20); __pyx_t_20 = 0;
              __Pyx_DECREF(__pyx_t_21); __pyx_t_21 = 0;
              __pyx_t_14 = 1;
              {
                PyObject *__pyx_callargs[6] = {__pyx_t_13, __pyx_t_16, __pyx_t_17, __pyx_t_18, __pyx_t_19, __pyx_t_22};
                __pyx_t_12 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_UnicodeDecodeError)), __pyx_callargs+__pyx_t_14, (6-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
                __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
                __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
                __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
                __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
                __Pyx_DECREF(__pyx_t_22); __pyx_t_22 = 0;
                if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 359, __pyx_L38_error)
                __Pyx_GOTREF(__pyx_t_12);
              }
              __Pyx_Raise(__pyx_t_12, 0, 0, 0);
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              __PYX_ERR(0, 359, __pyx_L38_error)
            }

            /* "Cython/Tempita/_tempita.py":358
 *                 try:
 *                     value = value.decode(self.default_encoding)
 *                 except UnicodeDecodeError as e:             # <<<<<<<<<<<<<<
 *                     raise UnicodeDecodeError(
 *                         e.encoding,
*/
            /*finally:*/ {
              __pyx_L38_error:;
              /*exception exit:*/{
                __Pyx_PyThreadState_declare
                __Pyx_PyThreadState_assign
                __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; __pyx_t_28 = 0; __pyx_t_29 = 0; __pyx_t_30 = 0;
                __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
                __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
                __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
                __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
                __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0;
                __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
                __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0;
                __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
                __Pyx_XDECREF(__pyx_t_22); __pyx_t_22 = 0;
                 __Pyx_ExceptionSwap(&__pyx_t_28, &__pyx_t_29, &__pyx_t_30);
                if ( unlikely(__Pyx_GetException(&__pyx_t_25, &__pyx_t_26, &__pyx_t_27) < 0)) __Pyx_ErrFetch(&__pyx_t_25, &__pyx_t_26, &__pyx_t_27);
                __Pyx_XGOTREF(__pyx_t_25);
                __Pyx_XGOTREF(__pyx_t_26);
                __Pyx_XGOTREF(__pyx_t_27);
                __Pyx_XGOTREF(__pyx_t_28);
                __Pyx_XGOTREF(__pyx_t_29);
                __Pyx_XGOTREF(__pyx_t_30);
                __pyx_t_9 = __pyx_lineno; __pyx_t_23 = __pyx_clineno; __pyx_t_24 = __pyx_filename;
                {
                  __Pyx_DECREF(__pyx_v_e); __pyx_v_e = 0;
                }
                __Pyx_XGIVEREF(__pyx_t_28);
                __Pyx_XGIVEREF(__pyx_t_29);
                __Pyx_XGIVEREF(__pyx_t_30);
                __Pyx_ExceptionReset(__pyx_t_28, __pyx_t_29, __pyx_t_30);
                __Pyx_XGIVEREF(__pyx_t_25);
                __Pyx_XGIVEREF(__pyx_t_26);
                __Pyx_XGIVEREF(__pyx_t_27);
                __Pyx_ErrRestore(__pyx_t_25, __pyx_t_26, __pyx_t_27);
                __pyx_t_25 = 0; __pyx_t_26 = 0; __pyx_t_27 = 0; __pyx_t_28 = 0; __pyx_t_29 = 0; __pyx_t_30 = 0;
                __pyx_lineno = __pyx_t_9; __pyx_clineno = __pyx_t_23; __pyx_filename = __pyx_t_24;
                goto __pyx_L29_except_error;
              }
            }
          }
          goto __pyx_L29_except_error;

          /* "Cython/Tempita/_tempita.py":356
 *                         'Cannot decode bytes value %r into unicode '
 *                         '(no default_encoding provided)' % value)
 *                 try:             # <<<<<<<<<<<<<<
 *                     value = value.decode(self.default_encoding)
 *                 except UnicodeDecodeError as e:
*/
          __pyx_L29_except_error:;
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_XGIVEREF(__pyx_t_6);
          __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_7, __pyx_t_6);
          goto __pyx_L5_except_error;
          __pyx_L32_try_end:;
        }

        /* "Cython/Tempita/_tempita.py":351
 *             raise
 *         else:
 *             if self._unicode and isinstance(value, bytes):             # <<<<<<<<<<<<<<
 *                 if not self.default_encoding:
 *                     raise UnicodeDecodeError(
*/
        goto __pyx_L23;
      }

      /* "Cython/Tempita/_tempita.py":365
 *                         e.end,
 *                         e.reason + ' in string %r' % value)
 *             elif not self._unicode and isinstance(value, str):             # <<<<<<<<<<<<<<
 *                 if not self.default_encoding:
 *                     raise UnicodeEncodeError(
*/
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_15 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_15 < 0))) __PYX_ERR(0, 365, __pyx_L5_except_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_31 = (!__pyx_t_15);


      if (__pyx_t_31) {

      } else {

        __pyx_t_4 = __pyx_t_31;

        goto __pyx_L44_bool_binop_done;
      }
      __pyx_t_31 = PyUnicode_Check(__pyx_v_value); 

      __pyx_t_4 = __pyx_t_31;

      __pyx_L44_bool_binop_done:;
      if (__pyx_t_4) {


        /* "Cython/Tempita/_tempita.py":366
 *                         e.reason + ' in string %r' % value)
 *             elif not self._unicode and isinstance(value, str):
 *                 if not self.default_encoding:             # <<<<<<<<<<<<<<
 *                     raise UnicodeEncodeError(
 *                         'Cannot encode unicode value %r into bytes '
*/
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_encoding); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 366, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 366, __pyx_L5_except_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_31 = (!__pyx_t_4);


        if (unlikely(__pyx_t_31)) {


          /* "Cython/Tempita/_tempita.py":367
 *             elif not self._unicode and isinstance(value, str):
 *                 if not self.default_encoding:
 *                     raise UnicodeEncodeError(             # <<<<<<<<<<<<<<
 *                         'Cannot encode unicode value %r into bytes '
 *                         '(no default_encoding provided)' % value)
*/
          __pyx_t_10 = NULL;

          /* "Cython/Tempita/_tempita.py":369
 *                     raise UnicodeEncodeError(
 *                         'Cannot encode unicode value %r into bytes '
 *                         '(no default_encoding provided)' % value)             # <<<<<<<<<<<<<<
 *                 value = value.encode(self.default_encoding)
 *             return value
*/
          __pyx_t_11 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Cannot_encode_unicode_value_r_in, __pyx_v_value); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 369, __pyx_L5_except_error)
          __Pyx_GOTREF(__pyx_t_11);
          __pyx_t_14 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_t_11};
            __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_UnicodeEncodeError)), __pyx_callargs+__pyx_t_14, (2-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 367, __pyx_L5_except_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __Pyx_Raise(__pyx_t_5, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __PYX_ERR(0, 367, __pyx_L5_except_error)

          /* "Cython/Tempita/_tempita.py":366
 *                         e.reason + ' in string %r' % value)
 *             elif not self._unicode and isinstance(value, str):
 *                 if not self.default_encoding:             # <<<<<<<<<<<<<<
 *                     raise UnicodeEncodeError(
 *                         'Cannot encode unicode value %r into bytes '
*/
        }

        /* "Cython/Tempita/_tempita.py":370
 *                         'Cannot encode unicode value %r into bytes '
 *                         '(no default_encoding provided)' % value)
 *                 value = value.encode(self.default_encoding)             # <<<<<<<<<<<<<<
 *             return value
 * 
*/
        __pyx_t_11 = __pyx_v_value;
        __Pyx_INCREF(__pyx_t_11);
        __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_default_encoding); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 370, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_10);
        __pyx_t_14 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_10};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_encode, __pyx_callargs+__pyx_t_14, (2-__pyx_t_14) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 370, __pyx_L5_except_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_5);
        __pyx_t_5 = 0;

        /* "Cython/Tempita/_tempita.py":365
 *                         e.end,
 *                         e.reason + ' in string %r' % value)
 *             elif not self._unicode and isinstance(value, str):             # <<<<<<<<<<<<<<
 *                 if not self.default_encoding:
 *                     raise UnicodeEncodeError(
*/
      }
      __pyx_L23:;

      /* "Cython/Tempita/_tempita.py":371
 *                         '(no default_encoding provided)' % value)
 *                 value = value.encode(self.default_encoding)
 *             return value             # <<<<<<<<<<<<<<
 * 
 *     def _add_line_info(self, msg, pos):
*/
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __Pyx_INCREF(__pyx_v_value);
          __pyx_r = __pyx_v_value;
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      goto __pyx_L6_except_return;
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "Cython/Tempita/_tempita.py":347
 *                         and self.default_encoding):
 *                     value = value.encode(self.default_encoding)
 *         except Exception as e:             # <<<<<<<<<<<<<<
 *             e.args = (self._add_line_info(e.args[0], pos),)
 *             raise
*/
    __pyx_t_23 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_Exception))));
    if (__pyx_t_23) {
      __Pyx_AddTraceback("Cython.Tempita._tempita.Template._repr", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_10, &__pyx_t_11) < 0) __PYX_ERR(0, 347, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_INCREF(__pyx_t_10);
      __pyx_v_e = __pyx_t_10;
      /*try:*/ {

        /* "Cython/Tempita/_tempita.py":348
 *                     value = value.encode(self.default_encoding)
 *         except Exception as e:
 *             e.args = (self._add_line_info(e.args[0], pos),)             # <<<<<<<<<<<<<<
 *             raise
 *         else:
*/
        __pyx_t_22 = __pyx_v_self;
        __Pyx_INCREF(__pyx_t_22);
        __pyx_t_19 = __Pyx_PyException_get_args(__pyx_v_e); if (unlikely(!__pyx_t_19)) __PYX_ERR(0, 348, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_19);
        __pyx_t_18 = __Pyx_GetItemInt(__pyx_t_19, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 348, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_18);
        __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
        __pyx_t_14 = 0;
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_22, __pyx_t_18, __pyx_v_pos};
          __pyx_t_12 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_add_line_info, __pyx_callargs+__pyx_t_14, (3-__pyx_t_14) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_22); __pyx_t_22 = 0;
          __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
          if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 348, __pyx_L52_error)
          __Pyx_GOTREF(__pyx_t_12);
        }
        __pyx_t_18 = PyTuple_New(1); if (unlikely(!__pyx_t_18)) __PYX_ERR(0, 348, __pyx_L52_error)
        __Pyx_GOTREF(__pyx_t_18);
        __Pyx_GIVEREF(__pyx_t_12);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_12) != (0)) __PYX_ERR(0, 348, __pyx_L52_error);
        __pyx_t_12 = 0;
        __pyx_t_32 = __Pyx_PyException_set_args(__pyx_v_e, __pyx_t_18); if (unlikely(__pyx_t_32 == ((int)-1))) __PYX_ERR(0, 348, __pyx_L52_error)
        __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;

        /* "Cython/Tempita/_tempita.py":349
 *         except Exception as e:
 *             e.args = (self._add_line_info(e.args[0], pos),)
 *             raise             # <<<<<<<<<<<<<<
 *         else:
 *             if self._unicode and isinstance(value, bytes):
*/
        __Pyx_GIVEREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_ErrRestoreWithState(__pyx_t_5, __pyx_t_10, __pyx_t_11);
        __pyx_t_5 = 0;  __pyx_t_10 = 0;  __pyx_t_11 = 0; 
        __PYX_ERR(0, 349, __pyx_L52_error)
      }

      /* "Cython/Tempita/_tempita.py":347
 *                         and self.default_encoding):
 *                     value = value.encode(self.default_encoding)
 *         except Exception as e:             # <<<<<<<<<<<<<<
 *             e.args = (self._add_line_info(e.args[0], pos),)
 *             raise
*/
      /*finally:*/ {
        __pyx_L52_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_30 = 0; __pyx_t_29 = 0; __pyx_t_28 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
          __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
          __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0;
          __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0;
          __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0;
          __Pyx_XDECREF(__pyx_t_21); __pyx_t_21 = 0;
          __Pyx_XDECREF(__pyx_t_22); __pyx_t_22 = 0;
           __Pyx_ExceptionSwap(&__pyx_t_30, &__pyx_t_29, &__pyx_t_28);
          if ( unlikely(__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8) < 0)) __Pyx_ErrFetch(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
          __Pyx_XGOTREF(__pyx_t_6);
          __Pyx_XGOTREF(__pyx_t_7);
          __Pyx_XGOTREF(__pyx_t_8);
          __Pyx_XGOTREF(__pyx_t_30);
          __Pyx_XGOTREF(__pyx_t_29);
          __Pyx_XGOTREF(__pyx_t_28);
          __pyx_t_23 = __pyx_lineno; __pyx_t_9 = __pyx_clineno; __pyx_t_24 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_e); __pyx_v_e = 0;
          }
          __Pyx_XGIVEREF(__pyx_t_30);
          __Pyx_XGIVEREF(__pyx_t_29);
          __Pyx_XGIVEREF(__pyx_t_28);
          __Pyx_ExceptionReset(__pyx_t_30, __pyx_t_29, __pyx_t_28);
          __Pyx_XGIVEREF(__pyx_t_6);
          __Pyx_XGIVEREF(__pyx_t_7);
          __Pyx_XGIVEREF(__pyx_t_8);
          __Pyx_ErrRestore(__pyx_t_6, __pyx_t_7, __pyx_t_8);
          __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_30 = 0; __pyx_t_29 = 0; __pyx_t_28 = 0;
          __pyx_lineno = __pyx_t_23; __pyx_clineno = __pyx_t_9; __pyx_filename = __pyx_t_24;
          goto __pyx_L5_except_error;
        }
      }
    }
    goto __pyx_L5_except_error;

    /* "Cython/Tempita/_tempita.py":333
 *     def _repr(self, value, pos):
 *         __traceback_hide__ = True
 *         try:             # <<<<<<<<<<<<<<
 *             if value is None:
 *                 return ''
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "Cython/Tempita/_tempita.py":331
 *             raise
 * 
 *     def _repr(self, value, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_XDECREF(__pyx_t_18);
  __Pyx_XDECREF(__pyx_t_19);
  __Pyx_XDECREF(__pyx_t_20);
  __Pyx_XDECREF(__pyx_t_21);
  __Pyx_XDECREF(__pyx_t_22);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._repr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;

  __Pyx_XDECREF(__pyx_v_e);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":373
 *             return value
 * 
 *     def _add_line_info(self, msg, pos):             # <<<<<<<<<<<<<<
 *         msg = "%s at line %s column %s" % (
 *             msg, pos[0], pos[1])
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_27_add_line_info(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_8Template_27_add_line_info = {"_add_line_info", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_8Template_27_add_line_info, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_8Template_27_add_line_info(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_msg = 0;
  PyObject *__pyx_v_pos = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_add_line_info (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_msg,&__pyx_mstate_global->__pyx_n_u_pos,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 373, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 373, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_add_line_info", 0) < (0)) __PYX_ERR(0, 373, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_add_line_info", 1, 3, 3, i); __PYX_ERR(0, 373, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 373, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 373, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 373, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_msg = values[1];
    __pyx_v_pos = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_add_line_info", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 373, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._add_line_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8Template_26_add_line_info(__pyx_self, __pyx_v_self, __pyx_v_msg, __pyx_v_pos);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8Template_26_add_line_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_msg, PyObject *__pyx_v_pos) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5[5];
  Py_ssize_t __pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_add_line_info", 0);
  __Pyx_INCREF(__pyx_v_msg);

  /* "Cython/Tempita/_tempita.py":375
 *     def _add_line_info(self, msg, pos):
 *         msg = "%s at line %s column %s" % (
 *             msg, pos[0], pos[1])             # <<<<<<<<<<<<<<
 *         if self.name:
 *             msg += " in file %s" % self.name
*/
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_msg), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_pos, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_pos, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5[0] = __pyx_t_1;
  __pyx_t_5[1] = __pyx_mstate_global->__pyx_kp_u_at_line;
  __pyx_t_5[2] = __pyx_t_3;
  __pyx_t_5[3] = __pyx_mstate_global->__pyx_kp_u_column;
  __pyx_t_5[4] = __pyx_t_4;

  /* "Cython/Tempita/_tempita.py":374
 * 
 *     def _add_line_info(self, msg, pos):
 *         msg = "%s at line %s column %s" % (             # <<<<<<<<<<<<<<
 *             msg, pos[0], pos[1])
 *         if self.name:
*/
  __pyx_t_6 = 17;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5[0]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5[2]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5[4]);
  #endif
  __pyx_t_7 = 0;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_7 |= __Pyx_PyUnicode_KIND_04(__pyx_t_5[0]) | __Pyx_PyUnicode_KIND_04(__pyx_t_5[2]) | __Pyx_PyUnicode_KIND_04(__pyx_t_5[4]);
  #endif
  __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_6, __pyx_t_7);
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF_SET(__pyx_v_msg, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":376
 *         msg = "%s at line %s column %s" % (
 *             msg, pos[0], pos[1])
 *         if self.name:             # <<<<<<<<<<<<<<
 *             msg += " in file %s" % self.name
 *         return msg
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_8) {


    /* "Cython/Tempita/_tempita.py":377
 *             msg, pos[0], pos[1])
 *         if self.name:
 *             msg += " in file %s" % self.name             # <<<<<<<<<<<<<<
 *         return msg
 * 
*/
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_in_file_s, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_msg, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF_SET(__pyx_v_msg, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":376
 *         msg = "%s at line %s column %s" % (
 *             msg, pos[0], pos[1])
 *         if self.name:             # <<<<<<<<<<<<<<
 *             msg += " in file %s" % self.name
 *         return msg
*/
  }

  /* "Cython/Tempita/_tempita.py":378
 *         if self.name:
 *             msg += " in file %s" % self.name
 *         return msg             # <<<<<<<<<<<<<<
 * 
 * 
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_v_msg);
      __pyx_r = __pyx_v_msg;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":373
 *             return value
 * 
 *     def _add_line_info(self, msg, pos):             # <<<<<<<<<<<<<<
 *         msg = "%s at line %s column %s" % (
 *             msg, pos[0], pos[1])
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("Cython.Tempita._tempita.Template._add_line_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_msg);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":381
 * 
 * 
 * def sub(content, delimiters=None, **kw):             # <<<<<<<<<<<<<<
 *     name = kw.get('__name')
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5sub(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_5sub = {"sub", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_5sub, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5sub(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_content = 0;
  PyObject *__pyx_v_delimiters = 0;
  PyObject *__pyx_v_kw = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("sub (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_kw = PyDict_New(); if (unlikely(!__pyx_v_kw)) return NULL;
  __Pyx_GOTREF(__pyx_v_kw);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_content,&__pyx_mstate_global->__pyx_n_u_delimiters,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 381, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 381, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 381, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kw, values, kwd_pos_args, __pyx_kwds_len, "sub", 1) < (0)) __PYX_ERR(0, 381, __pyx_L3_error)
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("sub", 0, 1, 2, i); __PYX_ERR(0, 381, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 381, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 381, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_content = values[0];
    __pyx_v_delimiters = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("sub", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 381, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
  __Pyx_AddTraceback("Cython.Tempita._tempita.sub", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_4sub(__pyx_self, __pyx_v_content, __pyx_v_delimiters, __pyx_v_kw);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_4sub(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_content, PyObject *__pyx_v_delimiters, PyObject *__pyx_v_kw) {
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_delimeters = NULL;
  PyObject *__pyx_v_tmpl = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("sub", 0);

  /* "Cython/Tempita/_tempita.py":382
 * 
 * def sub(content, delimiters=None, **kw):
 *     name = kw.get('__name')             # <<<<<<<<<<<<<<
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code
 *     tmpl = Template(content, name=name, delimiters=delimiters, delimeters=delimeters)
*/
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_kw, __pyx_mstate_global->__pyx_n_u_name_4, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":383
 * def sub(content, delimiters=None, **kw):
 *     name = kw.get('__name')
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code             # <<<<<<<<<<<<<<
 *     tmpl = Template(content, name=name, delimiters=delimiters, delimeters=delimeters)
 *     return tmpl.substitute(kw)
*/
  __pyx_t_2 = (__Pyx_PyDict_ContainsTF(__pyx_mstate_global->__pyx_n_u_delimeters, __pyx_v_kw, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 383, __pyx_L1_error)
  if (__pyx_t_2) {
    __pyx_t_3 = __Pyx_PyDict_Pop(__pyx_v_kw, __pyx_mstate_global->__pyx_n_u_delimeters, ((PyObject *)NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 383, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_1 = Py_None;
  }

  __pyx_v_delimeters = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":384
 *     name = kw.get('__name')
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code
 *     tmpl = Template(content, name=name, delimiters=delimiters, delimeters=delimeters)             # <<<<<<<<<<<<<<
 *     return tmpl.substitute(kw)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_Template); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_3, __pyx_v_content, __pyx_v_name, __pyx_v_delimiters, __pyx_v_delimeters};
    #if CYTHON_VECTORCALL
    __pyx_t_6 = __pyx_mstate_global->__pyx_tuple[7];
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 384, __pyx_L1_error)
    __Pyx_INCREF(__pyx_t_6);
    #else
    {
      PyObject *__pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_delimiters, __pyx_mstate_global->__pyx_n_u_delimeters};
      __pyx_t_6 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 3);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 384, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
    }
    #endif
    __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_tmpl = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":385
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code
 *     tmpl = Template(content, name=name, delimiters=delimiters, delimeters=delimeters)
 *     return tmpl.substitute(kw)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_4 = __pyx_v_tmpl;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_5 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_kw};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_substitute, __pyx_callargs+__pyx_t_5, (2-__pyx_t_5) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_1;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":381
 * 
 * 
 * def sub(content, delimiters=None, **kw):             # <<<<<<<<<<<<<<
 *     name = kw.get('__name')
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("Cython.Tempita._tempita.sub", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_delimeters);
  __Pyx_XDECREF(__pyx_v_tmpl);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":388
 * 
 * 
 * def paste_script_template_renderer(content, vars, filename=None):             # <<<<<<<<<<<<<<
 *     tmpl = Template(content, name=filename)
 *     return tmpl.substitute(vars)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_7paste_script_template_renderer(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_7paste_script_template_renderer = {"paste_script_template_renderer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_7paste_script_template_renderer, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_7paste_script_template_renderer(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_content = 0;
  PyObject *__pyx_v_vars = 0;
  PyObject *__pyx_v_filename = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("paste_script_template_renderer (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_content,&__pyx_mstate_global->__pyx_n_u_vars,&__pyx_mstate_global->__pyx_n_u_filename,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 388, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 388, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 388, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 388, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "paste_script_template_renderer", 0) < (0)) __PYX_ERR(0, 388, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("paste_script_template_renderer", 0, 2, 3, i); __PYX_ERR(0, 388, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 388, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 388, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 388, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_content = values[0];
    __pyx_v_vars = values[1];
    __pyx_v_filename = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("paste_script_template_renderer", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 388, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.paste_script_template_renderer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_6paste_script_template_renderer(__pyx_self, __pyx_v_content, __pyx_v_vars, __pyx_v_filename);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6paste_script_template_renderer(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_content, PyObject *__pyx_v_vars, PyObject *__pyx_v_filename) {
  PyObject *__pyx_v_tmpl = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("paste_script_template_renderer", 0);

  /* "Cython/Tempita/_tempita.py":389
 * 
 * def paste_script_template_renderer(content, vars, filename=None):
 *     tmpl = Template(content, name=filename)             # <<<<<<<<<<<<<<
 *     return tmpl.substitute(vars)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Template); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_content, __pyx_v_filename};
    #if CYTHON_VECTORCALL
    __pyx_t_5 = __pyx_mstate_global->__pyx_tuple[8];
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_INCREF(__pyx_t_5);
    #else
    {
      PyObject *__pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_name};
      __pyx_t_5 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 1);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
    }
    #endif
    __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_tmpl = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":390
 * def paste_script_template_renderer(content, vars, filename=None):
 *     tmpl = Template(content, name=filename)
 *     return tmpl.substitute(vars)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_3 = __pyx_v_tmpl;
  __Pyx_INCREF(__pyx_t_3);
  __pyx_t_4 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_vars};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_substitute, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 390, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_1;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":388
 * 
 * 
 * def paste_script_template_renderer(content, vars, filename=None):             # <<<<<<<<<<<<<<
 *     tmpl = Template(content, name=filename)
 *     return tmpl.substitute(vars)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("Cython.Tempita._tempita.paste_script_template_renderer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tmpl);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":395
 * class bunch(dict):
 * 
 *     def __init__(self, **kw):             # <<<<<<<<<<<<<<
 *         for name, value in kw.items():
 *             setattr(self, name, value)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_kw = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_kw = PyDict_New(); if (unlikely(!__pyx_v_kw)) return NULL;
  __Pyx_GOTREF(__pyx_v_kw);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 395, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 395, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kw, values, kwd_pos_args, __pyx_kwds_len, "__init__", 1) < (0)) __PYX_ERR(0, 395, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, i); __PYX_ERR(0, 395, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 395, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 395, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_5bunch___init__(__pyx_self, __pyx_v_self, __pyx_v_kw);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_kw) {
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "Cython/Tempita/_tempita.py":396
 * 
 *     def __init__(self, **kw):
 *         for name, value in kw.items():             # <<<<<<<<<<<<<<
 *             setattr(self, name, value)
 * 
*/
  __pyx_t_2 = 0;
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_v_kw, 1, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_7 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, &__pyx_t_6, NULL, __pyx_t_4);
    if (unlikely(__pyx_t_7 == 0)) break;
    if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(0, 396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "Cython/Tempita/_tempita.py":397
 *     def __init__(self, **kw):
 *         for name, value in kw.items():
 *             setattr(self, name, value)             # <<<<<<<<<<<<<<
 * 
 *     def __setattr__(self, name, value):
*/
    __pyx_t_8 = PyObject_SetAttr(__pyx_v_self, __pyx_v_name, __pyx_v_value); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 397, __pyx_L1_error)

  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":395
 * class bunch(dict):
 * 
 *     def __init__(self, **kw):             # <<<<<<<<<<<<<<
 *         for name, value in kw.items():
 *             setattr(self, name, value)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":399
 *             setattr(self, name, value)
 * 
 *     def __setattr__(self, name, value):             # <<<<<<<<<<<<<<
 *         self[name] = value
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_3__setattr__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_3__setattr__ = {"__setattr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_3__setattr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_3__setattr__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 399, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 399, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 399, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 399, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__setattr__", 0) < (0)) __PYX_ERR(0, 399, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__setattr__", 1, 3, 3, i); __PYX_ERR(0, 399, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 399, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 399, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 399, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_name = values[1];
    __pyx_v_value = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__setattr__", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 399, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_5bunch_2__setattr__(__pyx_self, __pyx_v_self, __pyx_v_name, __pyx_v_value);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_2__setattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setattr__", 0);

  /* "Cython/Tempita/_tempita.py":400
 * 
 *     def __setattr__(self, name, value):
 *         self[name] = value             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, name):
*/
  if (unlikely((PyObject_SetItem(__pyx_v_self, __pyx_v_name, __pyx_v_value) < 0))) __PYX_ERR(0, 400, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":399
 *             setattr(self, name, value)
 * 
 *     def __setattr__(self, name, value):             # <<<<<<<<<<<<<<
 *         self[name] = value
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":402
 *         self[name] = value
 * 
 *     def __getattr__(self, name):             # <<<<<<<<<<<<<<
 *         try:
 *             return self[name]
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_5__getattr__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_5__getattr__ = {"__getattr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_5__getattr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_5__getattr__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 402, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 402, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 402, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getattr__", 0) < (0)) __PYX_ERR(0, 402, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, i); __PYX_ERR(0, 402, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 402, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 402, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_name = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 402, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_5bunch_4__getattr__(__pyx_self, __pyx_v_self, __pyx_v_name);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_4__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "Cython/Tempita/_tempita.py":403
 * 
 *     def __getattr__(self, name):
 *         try:             # <<<<<<<<<<<<<<
 *             return self[name]
 *         except KeyError:
*/
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "Cython/Tempita/_tempita.py":404
 *     def __getattr__(self, name):
 *         try:
 *             return self[name]             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             raise AttributeError(name)
*/
      __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_self, __pyx_v_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 404, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = __pyx_t_4;
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "Cython/Tempita/_tempita.py":403
 * 
 *     def __getattr__(self, name):
 *         try:             # <<<<<<<<<<<<<<
 *             return self[name]
 *         except KeyError:
*/
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":405
 *         try:
 *             return self[name]
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             raise AttributeError(name)
 * 
*/
    __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
    if (__pyx_t_5) {
      __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 405, __pyx_L5_except_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_7);

      /* "Cython/Tempita/_tempita.py":406
 *             return self[name]
 *         except KeyError:
 *             raise AttributeError(name)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, key):
*/
      __pyx_t_9 = NULL;
      __pyx_t_10 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_9, __pyx_v_name};
        __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_AttributeError)), __pyx_callargs+__pyx_t_10, (2-__pyx_t_10) | (__pyx_t_10*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 406, __pyx_L5_except_error)
        __Pyx_GOTREF(__pyx_t_8);
      }
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(0, 406, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;

    /* "Cython/Tempita/_tempita.py":403
 * 
 *     def __getattr__(self, name):
 *         try:             # <<<<<<<<<<<<<<
 *             return self[name]
 *         except KeyError:
*/
    __pyx_L5_except_error:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "Cython/Tempita/_tempita.py":402
 *         self[name] = value
 * 
 *     def __getattr__(self, name):             # <<<<<<<<<<<<<<
 *         try:
 *             return self[name]
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":408
 *             raise AttributeError(name)
 * 
 *     def __getitem__(self, key):             # <<<<<<<<<<<<<<
 *         if 'default' in self:
 *             try:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_7__getitem__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_7__getitem__ = {"__getitem__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_7__getitem__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_7__getitem__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_key = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_key,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 408, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 408, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 408, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getitem__", 0) < (0)) __PYX_ERR(0, 408, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, i); __PYX_ERR(0, 408, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 408, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 408, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_key = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 408, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_5bunch_6__getitem__(__pyx_self, __pyx_v_self, __pyx_v_key);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_6__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "Cython/Tempita/_tempita.py":409
 * 
 *     def __getitem__(self, key):
 *         if 'default' in self:             # <<<<<<<<<<<<<<
 *             try:
 *                 return dict.__getitem__(self, key)
*/
  __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_default, __pyx_v_self, Py_EQ)); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 409, __pyx_L1_error)
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":410
 *     def __getitem__(self, key):
 *         if 'default' in self:
 *             try:             # <<<<<<<<<<<<<<
 *                 return dict.__getitem__(self, key)
 *             except KeyError:
*/
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_4);
      /*try:*/ {

        /* "Cython/Tempita/_tempita.py":411
 *         if 'default' in self:
 *             try:
 *                 return dict.__getitem__(self, key)             # <<<<<<<<<<<<<<
 *             except KeyError:
 *                 return dict.__getitem__(self, 'default')
*/
        __pyx_t_6 = ((PyObject *)(&PyDict_Type));
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_7 = 0;
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_v_self, __pyx_v_key};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getitem, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 411, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = __pyx_t_5;
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_5 = 0;
        goto __pyx_L8_try_return;

        /* "Cython/Tempita/_tempita.py":410
 *     def __getitem__(self, key):
 *         if 'default' in self:
 *             try:             # <<<<<<<<<<<<<<
 *                 return dict.__getitem__(self, key)
 *             except KeyError:
*/
      }
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "Cython/Tempita/_tempita.py":412
 *             try:
 *                 return dict.__getitem__(self, key)
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 return dict.__getitem__(self, 'default')
 *         else:
*/
      __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_KeyError))));
      if (__pyx_t_8) {
        __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_9) < 0) __PYX_ERR(0, 412, __pyx_L6_except_error)
        __Pyx_XGOTREF(__pyx_t_5);
        __Pyx_XGOTREF(__pyx_t_6);
        __Pyx_XGOTREF(__pyx_t_9);

        /* "Cython/Tempita/_tempita.py":413
 *                 return dict.__getitem__(self, key)
 *             except KeyError:
 *                 return dict.__getitem__(self, 'default')             # <<<<<<<<<<<<<<
 *         else:
 *             return dict.__getitem__(self, key)
*/
        __pyx_t_11 = ((PyObject *)(&PyDict_Type));
        __Pyx_INCREF(__pyx_t_11);
        __pyx_t_7 = 0;
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_11, __pyx_v_self, __pyx_mstate_global->__pyx_n_u_default};
          __pyx_t_10 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getitem, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 413, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_10);
        }
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = __pyx_t_10;
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        goto __pyx_L7_except_return;
      }
      goto __pyx_L6_except_error;

      /* "Cython/Tempita/_tempita.py":410
 *     def __getitem__(self, key):
 *         if 'default' in self:
 *             try:             # <<<<<<<<<<<<<<
 *                 return dict.__getitem__(self, key)
 *             except KeyError:
*/
      __pyx_L6_except_error:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      goto __pyx_L1_error;
      __pyx_L8_try_return:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      goto __pyx_L0;
      __pyx_L7_except_return:;
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
      goto __pyx_L0;
    }

    /* "Cython/Tempita/_tempita.py":409
 * 
 *     def __getitem__(self, key):
 *         if 'default' in self:             # <<<<<<<<<<<<<<
 *             try:
 *                 return dict.__getitem__(self, key)
*/
  }

  /* "Cython/Tempita/_tempita.py":415
 *                 return dict.__getitem__(self, 'default')
 *         else:
 *             return dict.__getitem__(self, key)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  /*else*/ {
    __pyx_t_6 = ((PyObject *)(&PyDict_Type));
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_7 = 0;
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_v_self, __pyx_v_key};
      __pyx_t_9 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_getitem, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 415, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
    }
    {
      PyObject *__pyx_temp;
      {
        __pyx_temp = __pyx_r;
        __pyx_r = __pyx_t_9;
      }
      __Pyx_XDECREF(__pyx_temp);
    }
    __pyx_t_9 = 0;
    goto __pyx_L0;
  }

  /* "Cython/Tempita/_tempita.py":408
 *             raise AttributeError(name)
 * 
 *     def __getitem__(self, key):             # <<<<<<<<<<<<<<
 *         if 'default' in self:
 *             try:
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":417
 *             return dict.__getitem__(self, key)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s>' % (
 *             self.__class__.__name__,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_9__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_9__repr__ = {"__repr__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_9__repr__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_5bunch_9__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_5bunch_8__repr__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_5bunch_8__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_7genexpr__pyx_v_k = NULL;
  PyObject *__pyx_7genexpr__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10[3];
  Py_ssize_t __pyx_t_11;
  int __pyx_t_12;
  PyObject *__pyx_t_13[5];
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "Cython/Tempita/_tempita.py":419
 *     def __repr__(self):
 *         return '<%s %s>' % (
 *             self.__class__.__name__,             # <<<<<<<<<<<<<<
 *             ' '.join(['%s=%r' % (k, v) for k, v in sorted(self.items())]))
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":420
 *         return '<%s %s>' % (
 *             self.__class__.__name__,
 *             ' '.join(['%s=%r' % (k, v) for k, v in sorted(self.items())]))             # <<<<<<<<<<<<<<
 * 
 * 
*/
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_items); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 420, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = PySequence_List(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely((PyList_Sort(__pyx_t_3) < 0))) __PYX_ERR(0, 420, __pyx_L5_error)
    __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_4);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 420, __pyx_L5_error)
        #endif
        if (__pyx_t_5 >= __pyx_temp) break;
      }
      __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_4, __pyx_t_5, __Pyx_ReferenceSharing_OwnStrongReference);
      ++__pyx_t_5;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
        PyObject* sequence = __pyx_t_3;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 420, __pyx_L5_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_6);
          __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_7);
        } else {
          __pyx_t_6 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 420, __pyx_L5_error)
          __Pyx_XGOTREF(__pyx_t_6);
          __pyx_t_7 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 420, __pyx_L5_error)
          __Pyx_XGOTREF(__pyx_t_7);
        }
        #else
        __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 420, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 420, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_7);
        #endif
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_8 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 420, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_9 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
        index = 0; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L8_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_6);
        index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L8_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_7);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < (0)) __PYX_ERR(0, 420, __pyx_L5_error)
        __pyx_t_9 = NULL;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        goto __pyx_L9_unpacking_done;
        __pyx_L8_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_9 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 420, __pyx_L5_error)
        __pyx_L9_unpacking_done:;
      }
      __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_k, __pyx_t_6);
      __pyx_t_6 = 0;
      __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_v, __pyx_t_7);
      __pyx_t_7 = 0;
      __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_7genexpr__pyx_v_k), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_7genexpr__pyx_v_v), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 420, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_10[0] = __pyx_t_3;
      __pyx_t_10[1] = __pyx_mstate_global->__pyx_kp_u__7;
      __pyx_t_10[2] = __pyx_t_7;
      __pyx_t_11 = 1;
      #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
      __pyx_t_11 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10[0]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_10[2]);
      #endif
      __pyx_t_12 = 0;
      #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
      __pyx_t_12 |= __Pyx_PyUnicode_KIND_04(__pyx_t_10[0]) | __Pyx_PyUnicode_KIND_04(__pyx_t_10[2]);
      #endif
      __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_10, 3, __pyx_t_11, __pyx_t_12);
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 420, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_GIVEREF(__pyx_t_6);
      if (unlikely(__Pyx_ListComp_AppendAndDecref(__pyx_t_2, __pyx_t_6))) __PYX_ERR(0, 420, __pyx_L5_error)
      __pyx_t_6 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k); __pyx_7genexpr__pyx_v_k = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_v); __pyx_7genexpr__pyx_v_v = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k); __pyx_7genexpr__pyx_v_k = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_v); __pyx_7genexpr__pyx_v_v = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_t_4 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u_, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_13[0] = __pyx_mstate_global->__pyx_kp_u__3;
  __pyx_t_13[1] = __pyx_t_1;
  __pyx_t_13[2] = __pyx_mstate_global->__pyx_kp_u_;
  __pyx_t_13[3] = __pyx_t_4;
  __pyx_t_13[4] = __pyx_mstate_global->__pyx_kp_u__4;

  /* "Cython/Tempita/_tempita.py":418
 * 
 *     def __repr__(self):
 *         return '<%s %s>' % (             # <<<<<<<<<<<<<<
 *             self.__class__.__name__,
 *             ' '.join(['%s=%r' % (k, v) for k, v in sorted(self.items())]))
*/
  __pyx_t_5 = 3;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13[1]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13[3]);
  #endif
  __pyx_t_12 = 0;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_12 |= __Pyx_PyUnicode_KIND_04(__pyx_t_13[1]) | __Pyx_PyUnicode_KIND_04(__pyx_t_13[3]);
  #endif
  __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_13, 5, __pyx_t_5, __pyx_t_12);
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_2;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":417
 *             return dict.__getitem__(self, key)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s>' % (
 *             self.__class__.__name__,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("Cython.Tempita._tempita.bunch.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k);
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_v);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":424
 * 
 * class TemplateDef:
 *     def __init__(self, template, func_name, func_signature,             # <<<<<<<<<<<<<<
 *                  body, ns, pos, bound_self=None):
 *         self._template = template
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_template = 0;
  PyObject *__pyx_v_func_name = 0;
  PyObject *__pyx_v_func_signature = 0;
  PyObject *__pyx_v_body = 0;
  PyObject *__pyx_v_ns = 0;
  PyObject *__pyx_v_pos = 0;
  PyObject *__pyx_v_bound_self = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_template,&__pyx_mstate_global->__pyx_n_u_func_name,&__pyx_mstate_global->__pyx_n_u_func_signature,&__pyx_mstate_global->__pyx_n_u_body,&__pyx_mstate_global->__pyx_n_u_ns,&__pyx_mstate_global->__pyx_n_u_pos,&__pyx_mstate_global->__pyx_n_u_bound_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 424, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 424, __pyx_L3_error)

      /* "Cython/Tempita/_tempita.py":425
 * class TemplateDef:
 *     def __init__(self, template, func_name, func_signature,
 *                  body, ns, pos, bound_self=None):             # <<<<<<<<<<<<<<
 *         self._template = template
 *         self._func_name = func_name
*/
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 7; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 0, 7, 8, i); __PYX_ERR(0, 424, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 424, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 424, __pyx_L3_error)
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 424, __pyx_L3_error)
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 424, __pyx_L3_error)
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 424, __pyx_L3_error)
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 424, __pyx_L3_error)
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 424, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 424, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[7]) values[7] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_self = values[0];
    __pyx_v_template = values[1];
    __pyx_v_func_name = values[2];
    __pyx_v_func_signature = values[3];
    __pyx_v_body = values[4];
    __pyx_v_ns = values[5];
    __pyx_v_pos = values[6];
    __pyx_v_bound_self = values[7];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 7, 8, __pyx_nargs); __PYX_ERR(0, 424, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef___init__(__pyx_self, __pyx_v_self, __pyx_v_template, __pyx_v_func_name, __pyx_v_func_signature, __pyx_v_body, __pyx_v_ns, __pyx_v_pos, __pyx_v_bound_self);

  /* "Cython/Tempita/_tempita.py":424
 * 
 * class TemplateDef:
 *     def __init__(self, template, func_name, func_signature,             # <<<<<<<<<<<<<<
 *                  body, ns, pos, bound_self=None):
 *         self._template = template
*/

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_template, PyObject *__pyx_v_func_name, PyObject *__pyx_v_func_signature, PyObject *__pyx_v_body, PyObject *__pyx_v_ns, PyObject *__pyx_v_pos, PyObject *__pyx_v_bound_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "Cython/Tempita/_tempita.py":426
 *     def __init__(self, template, func_name, func_signature,
 *                  body, ns, pos, bound_self=None):
 *         self._template = template             # <<<<<<<<<<<<<<
 *         self._func_name = func_name
 *         self._func_signature = func_signature
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_template_2, __pyx_v_template) < (0)) __PYX_ERR(0, 426, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":427
 *                  body, ns, pos, bound_self=None):
 *         self._template = template
 *         self._func_name = func_name             # <<<<<<<<<<<<<<
 *         self._func_signature = func_signature
 *         self._body = body
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_func_name_2, __pyx_v_func_name) < (0)) __PYX_ERR(0, 427, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":428
 *         self._template = template
 *         self._func_name = func_name
 *         self._func_signature = func_signature             # <<<<<<<<<<<<<<
 *         self._body = body
 *         self._ns = ns
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_func_signature_2, __pyx_v_func_signature) < (0)) __PYX_ERR(0, 428, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":429
 *         self._func_name = func_name
 *         self._func_signature = func_signature
 *         self._body = body             # <<<<<<<<<<<<<<
 *         self._ns = ns
 *         self._pos = pos
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_body_2, __pyx_v_body) < (0)) __PYX_ERR(0, 429, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":430
 *         self._func_signature = func_signature
 *         self._body = body
 *         self._ns = ns             # <<<<<<<<<<<<<<
 *         self._pos = pos
 *         self._bound_self = bound_self
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_ns_2, __pyx_v_ns) < (0)) __PYX_ERR(0, 430, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":431
 *         self._body = body
 *         self._ns = ns
 *         self._pos = pos             # <<<<<<<<<<<<<<
 *         self._bound_self = bound_self
 * 
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_pos_2, __pyx_v_pos) < (0)) __PYX_ERR(0, 431, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":432
 *         self._ns = ns
 *         self._pos = pos
 *         self._bound_self = bound_self             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_bound_self_2, __pyx_v_bound_self) < (0)) __PYX_ERR(0, 432, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":424
 * 
 * class TemplateDef:
 *     def __init__(self, template, func_name, func_signature,             # <<<<<<<<<<<<<<
 *                  body, ns, pos, bound_self=None):
 *         self._template = template
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":434
 *         self._bound_self = bound_self
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<tempita function %s(%s) at %s:%s>' % (
 *             self._func_name, self._func_signature,
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_3__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_3__repr__ = {"__repr__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_3__repr__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_3__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_2__repr__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6[9];
  Py_ssize_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "Cython/Tempita/_tempita.py":436
 *     def __repr__(self):
 *         return '<tempita function %s(%s) at %s:%s>' % (
 *             self._func_name, self._func_signature,             # <<<<<<<<<<<<<<
 *             self._template.name, self._pos)
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_func_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_func_signature_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_1), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":437
 *         return '<tempita function %s(%s) at %s:%s>' % (
 *             self._func_name, self._func_signature,
 *             self._template.name, self._pos)             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_template_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_pos_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6[0] = __pyx_mstate_global->__pyx_kp_u_tempita_function;
  __pyx_t_6[1] = __pyx_t_2;
  __pyx_t_6[2] = __pyx_mstate_global->__pyx_kp_u__8;
  __pyx_t_6[3] = __pyx_t_3;
  __pyx_t_6[4] = __pyx_mstate_global->__pyx_kp_u_at;
  __pyx_t_6[5] = __pyx_t_1;
  __pyx_t_6[6] = __pyx_mstate_global->__pyx_kp_u__9;
  __pyx_t_6[7] = __pyx_t_5;
  __pyx_t_6[8] = __pyx_mstate_global->__pyx_kp_u__4;

  /* "Cython/Tempita/_tempita.py":435
 * 
 *     def __repr__(self):
 *         return '<tempita function %s(%s) at %s:%s>' % (             # <<<<<<<<<<<<<<
 *             self._func_name, self._func_signature,
 *             self._template.name, self._pos)
*/
  __pyx_t_7 = 26;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  for (Py_ssize_t i=1; i <= 7; i += 2) {
    Py_ssize_t l = __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6[i]);
    __pyx_t_7 += l;
  }
  #endif
  __pyx_t_8 = 0;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  for (Py_ssize_t i=1; i <= 7; i += 2) {
    int l = __Pyx_PyUnicode_KIND_04(__pyx_t_6[i]);
    __pyx_t_8 |= l;
  }
  #endif
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_6, 9, __pyx_t_7, __pyx_t_8);
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_4;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":434
 *         self._bound_self = bound_self
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<tempita function %s(%s) at %s:%s>' % (
 *             self._func_name, self._func_signature,
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":439
 *             self._template.name, self._pos)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self()
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_5__str__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_5__str__ = {"__str__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_5__str__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_5__str__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_4__str__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_4__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "Cython/Tempita/_tempita.py":440
 * 
 *     def __str__(self):
 *         return self()             # <<<<<<<<<<<<<<
 * 
 *     def __call__(self, *args, **kw):
*/
  __pyx_t_2 = NULL;
  __Pyx_INCREF(__pyx_v_self);
  __pyx_t_3 = __pyx_v_self; 
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_1;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":439
 *             self._template.name, self._pos)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self()
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":442
 *         return self()
 * 
 *     def __call__(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         values = self._parse_signature(args, kw)
 *         ns = self._ns.copy()
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_7__call__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_7__call__ = {"__call__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_7__call__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_7__call__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kw = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_kw = PyDict_New(); if (unlikely(!__pyx_v_kw)) return NULL;
  __Pyx_GOTREF(__pyx_v_kw);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 442, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        default:
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 442, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kw, values, used_pos_args, __pyx_kwds_len, "__call__", 1) < (0)) __PYX_ERR(0, 442, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, i); __PYX_ERR(0, 442, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs < 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 442, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, __pyx_nargs); __PYX_ERR(0, 442, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_6__call__(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kw);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_6__call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kw) {
  PyObject *__pyx_v_values = NULL;
  PyObject *__pyx_v_ns = NULL;
  PyObject *__pyx_v_out = NULL;
  PyObject *__pyx_v_subdefs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  size_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__call__", 0);

  /* "Cython/Tempita/_tempita.py":443
 * 
 *     def __call__(self, *args, **kw):
 *         values = self._parse_signature(args, kw)             # <<<<<<<<<<<<<<
 *         ns = self._ns.copy()
 *         ns.update(values)
*/
  __pyx_t_2 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_args, __pyx_v_kw};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_parse_signature, __pyx_callargs+__pyx_t_3, (3-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 443, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_values = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":444
 *     def __call__(self, *args, **kw):
 *         values = self._parse_signature(args, kw)
 *         ns = self._ns.copy()             # <<<<<<<<<<<<<<
 *         ns.update(values)
 *         if self._bound_self is not None:
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_ns_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __pyx_t_4;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_copy, __pyx_callargs+__pyx_t_3, (1-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __pyx_v_ns = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":445
 *         values = self._parse_signature(args, kw)
 *         ns = self._ns.copy()
 *         ns.update(values)             # <<<<<<<<<<<<<<
 *         if self._bound_self is not None:
 *             ns['self'] = self._bound_self
*/
  __pyx_t_4 = __pyx_v_ns;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_values};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_update, __pyx_callargs+__pyx_t_3, (2-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":446
 *         ns = self._ns.copy()
 *         ns.update(values)
 *         if self._bound_self is not None:             # <<<<<<<<<<<<<<
 *             ns['self'] = self._bound_self
 *         out = []
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_bound_self_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = (__pyx_t_1 != Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_5) {


    /* "Cython/Tempita/_tempita.py":447
 *         ns.update(values)
 *         if self._bound_self is not None:
 *             ns['self'] = self._bound_self             # <<<<<<<<<<<<<<
 *         out = []
 *         subdefs = {}
*/
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_bound_self_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (unlikely((PyObject_SetItem(__pyx_v_ns, __pyx_mstate_global->__pyx_n_u_self, __pyx_t_1) < 0))) __PYX_ERR(0, 447, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "Cython/Tempita/_tempita.py":446
 *         ns = self._ns.copy()
 *         ns.update(values)
 *         if self._bound_self is not None:             # <<<<<<<<<<<<<<
 *             ns['self'] = self._bound_self
 *         out = []
*/
  }

  /* "Cython/Tempita/_tempita.py":448
 *         if self._bound_self is not None:
 *             ns['self'] = self._bound_self
 *         out = []             # <<<<<<<<<<<<<<
 *         subdefs = {}
 *         self._template._interpret_codes(self._body, ns, out, subdefs)
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_out = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":449
 *             ns['self'] = self._bound_self
 *         out = []
 *         subdefs = {}             # <<<<<<<<<<<<<<
 *         self._template._interpret_codes(self._body, ns, out, subdefs)
 *         return ''.join(out)
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_subdefs = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":450
 *         out = []
 *         subdefs = {}
 *         self._template._interpret_codes(self._body, ns, out, subdefs)             # <<<<<<<<<<<<<<
 *         return ''.join(out)
 * 
*/
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_template_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __pyx_t_2;
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_body_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = 0;
  {
    PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_t_6, __pyx_v_ns, __pyx_v_out, __pyx_v_subdefs};
    __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_interpret_codes, __pyx_callargs+__pyx_t_3, (5-__pyx_t_3) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":451
 *         subdefs = {}
 *         self._template._interpret_codes(self._body, ns, out, subdefs)
 *         return ''.join(out)             # <<<<<<<<<<<<<<
 * 
 *     def __get__(self, obj, type=None):
*/
  __pyx_t_1 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__5, __pyx_v_out); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_1;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":442
 *         return self()
 * 
 *     def __call__(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         values = self._parse_signature(args, kw)
 *         ns = self._ns.copy()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XDECREF(__pyx_v_out);
  __Pyx_XDECREF(__pyx_v_subdefs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":453
 *         return ''.join(out)
 * 
 *     def __get__(self, obj, type=None):             # <<<<<<<<<<<<<<
 *         if obj is None:
 *             return self
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_9__get__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_9__get__ = {"__get__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_9__get__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_9__get__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_obj = 0;
  CYTHON_UNUSED PyObject *__pyx_v_type = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_obj,&__pyx_mstate_global->__pyx_n_u_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 453, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 453, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 453, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 453, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__get__", 0) < (0)) __PYX_ERR(0, 453, __pyx_L3_error)
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__get__", 0, 2, 3, i); __PYX_ERR(0, 453, __pyx_L3_error) }
      }
    } else {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 453, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 453, __pyx_L3_error)
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 453, __pyx_L3_error)
        break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)Py_None));
    }
    __pyx_v_self = values[0];
    __pyx_v_obj = values[1];
    __pyx_v_type = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__get__", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 453, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_8__get__(__pyx_self, __pyx_v_self, __pyx_v_obj, __pyx_v_type);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_8__get__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_obj, CYTHON_UNUSED PyObject *__pyx_v_type) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  size_t __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "Cython/Tempita/_tempita.py":454
 * 
 *     def __get__(self, obj, type=None):
 *         if obj is None:             # <<<<<<<<<<<<<<
 *             return self
 *         return self.__class__(
*/
  __pyx_t_1 = (__pyx_v_obj == Py_None);
  if (__pyx_t_1) {


    /* "Cython/Tempita/_tempita.py":455
 *     def __get__(self, obj, type=None):
 *         if obj is None:
 *             return self             # <<<<<<<<<<<<<<
 *         return self.__class__(
 *             self._template, self._func_name, self._func_signature,
*/
    {
      PyObject *__pyx_temp;
      {
        __pyx_temp = __pyx_r;
        __Pyx_INCREF(__pyx_v_self);
        __pyx_r = __pyx_v_self;
      }
      __Pyx_XDECREF(__pyx_temp);
    }
    goto __pyx_L0;

    /* "Cython/Tempita/_tempita.py":454
 * 
 *     def __get__(self, obj, type=None):
 *         if obj is None:             # <<<<<<<<<<<<<<
 *             return self
 *         return self.__class__(
*/
  }

  /* "Cython/Tempita/_tempita.py":456
 *         if obj is None:
 *             return self
 *         return self.__class__(             # <<<<<<<<<<<<<<
 *             self._template, self._func_name, self._func_signature,
 *             self._body, self._ns, self._pos, bound_self=obj)
*/
  __pyx_t_3 = __pyx_v_self;
  __Pyx_INCREF(__pyx_t_3);

  /* "Cython/Tempita/_tempita.py":457
 *             return self
 *         return self.__class__(
 *             self._template, self._func_name, self._func_signature,             # <<<<<<<<<<<<<<
 *             self._body, self._ns, self._pos, bound_self=obj)
 * 
*/
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_template_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_func_name_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_func_signature_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "Cython/Tempita/_tempita.py":458
 *         return self.__class__(
 *             self._template, self._func_name, self._func_signature,
 *             self._body, self._ns, self._pos, bound_self=obj)             # <<<<<<<<<<<<<<
 * 
 *     def _parse_signature(self, args, kw):
*/
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_body_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_ns_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_pos_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);

  /* "Cython/Tempita/_tempita.py":456
 *         if obj is None:
 *             return self
 *         return self.__class__(             # <<<<<<<<<<<<<<
 *             self._template, self._func_name, self._func_signature,
 *             self._body, self._ns, self._pos, bound_self=obj)
*/
  __pyx_t_10 = 0;
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7, __pyx_t_8, __pyx_t_9, __pyx_v_obj};
    #if CYTHON_VECTORCALL
    __pyx_t_11 = __pyx_mstate_global->__pyx_tuple[9];
    if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 456, __pyx_L1_error)
    __Pyx_INCREF(__pyx_t_11);
    #else
    {
      PyObject *__pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_bound_self};
      __pyx_t_11 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+7, 1);
      if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 456, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
    }
    #endif
    __pyx_t_2 = __Pyx_Object_VectorcallMethodKwds((PyObject*)__pyx_mstate_global->__pyx_n_u_class, __pyx_callargs+__pyx_t_10, (7-__pyx_t_10) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_11);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_2;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":453
 *         return ''.join(out)
 * 
 *     def __get__(self, obj, type=None):             # <<<<<<<<<<<<<<
 *         if obj is None:
 *             return self
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":460
 *             self._body, self._ns, self._pos, bound_self=obj)
 * 
 *     def _parse_signature(self, args, kw):             # <<<<<<<<<<<<<<
 *         values = {}
 *         sig_args, var_args, var_kw, defaults = self._func_signature
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_11_parse_signature(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_11_parse_signature = {"_parse_signature", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_11_parse_signature, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11TemplateDef_11_parse_signature(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kw = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_parse_signature (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_args,&__pyx_mstate_global->__pyx_n_u_kw,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 460, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 460, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 460, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 460, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "_parse_signature", 0) < (0)) __PYX_ERR(0, 460, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("_parse_signature", 1, 3, 3, i); __PYX_ERR(0, 460, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 460, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 460, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 460, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_args = values[1];
    __pyx_v_kw = values[2];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_parse_signature", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 460, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef._parse_signature", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_10_parse_signature(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kw);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_11TemplateDef_10_parse_signature(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kw) {
  PyObject *__pyx_v_values = NULL;
  PyObject *__pyx_v_sig_args = NULL;
  PyObject *__pyx_v_var_args = NULL;
  PyObject *__pyx_v_var_kw = NULL;
  PyObject *__pyx_v_defaults = NULL;
  PyObject *__pyx_v_extra_kw = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_value_expr = NULL;
  PyObject *__pyx_8genexpr1__pyx_v_v = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *(*__pyx_t_7)(PyObject *);
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_t_14;
  size_t __pyx_t_15;
  PyObject *(*__pyx_t_16)(PyObject *);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_parse_signature", 0);
  __Pyx_INCREF(__pyx_v_args);

  /* "Cython/Tempita/_tempita.py":461
 * 
 *     def _parse_signature(self, args, kw):
 *         values = {}             # <<<<<<<<<<<<<<
 *         sig_args, var_args, var_kw, defaults = self._func_signature
 *         extra_kw = {}
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_values = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":462
 *     def _parse_signature(self, args, kw):
 *         values = {}
 *         sig_args, var_args, var_kw, defaults = self._func_signature             # <<<<<<<<<<<<<<
 *         extra_kw = {}
 *         for name, value in kw.items():
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_func_signature_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
    PyObject* sequence = __pyx_t_1;
    Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
    if (unlikely(size != 4)) {
      if (size > 4) __Pyx_RaiseTooManyValuesError(4);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 462, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 2);
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 3);
      __Pyx_INCREF(__pyx_t_5);
    } else {
      __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 462, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 462, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 462, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyList_GET_ITEM_REF(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 462, __pyx_L1_error)
      __Pyx_XGOTREF(__pyx_t_5);
    }
    #else
    {
      Py_ssize_t i;
      PyObject** temps[4] = {&__pyx_t_2,&__pyx_t_3,&__pyx_t_4,&__pyx_t_5};
      for (i=0; i < 4; i++) {
        PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 462, __pyx_L1_error)
        __Pyx_GOTREF(item);
        *(temps[i]) = item;
      }
    }
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    Py_ssize_t index = -1;
    PyObject** temps[4] = {&__pyx_t_2,&__pyx_t_3,&__pyx_t_4,&__pyx_t_5};
    __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_6);
    for (index=0; index < 4; index++) {
      PyObject* item = __pyx_t_7(__pyx_t_6); if (unlikely(!item)) goto __pyx_L3_unpacking_failed;
      __Pyx_GOTREF(item);
      *(temps[index]) = item;
    }
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 4) < (0)) __PYX_ERR(0, 462, __pyx_L1_error)
    __pyx_t_7 = NULL;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_7 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(0, 462, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  __pyx_v_sig_args = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_v_var_args = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_v_var_kw = __pyx_t_4;
  __pyx_t_4 = 0;
  __pyx_v_defaults = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":463
 *         values = {}
 *         sig_args, var_args, var_kw, defaults = self._func_signature
 *         extra_kw = {}             # <<<<<<<<<<<<<<
 *         for name, value in kw.items():
 *             if not var_kw and name not in sig_args:
*/
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_extra_kw = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":464
 *         sig_args, var_args, var_kw, defaults = self._func_signature
 *         extra_kw = {}
 *         for name, value in kw.items():             # <<<<<<<<<<<<<<
 *             if not var_kw and name not in sig_args:
 *                 raise TypeError(
*/
  __pyx_t_8 = 0;
  if (unlikely(__pyx_v_kw == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "items");
    __PYX_ERR(0, 464, __pyx_L1_error)
  }
  __pyx_t_5 = __Pyx_dict_iterator(__pyx_v_kw, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_9), (&__pyx_t_10)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_5;
  __pyx_t_5 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_9, &__pyx_t_8, &__pyx_t_5, &__pyx_t_4, NULL, __pyx_t_10);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":465
 *         extra_kw = {}
 *         for name, value in kw.items():
 *             if not var_kw and name not in sig_args:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     'Unexpected argument %s' % name)
*/
    __pyx_t_13 = __Pyx_PyObject_IsTrue(__pyx_v_var_kw); if (unlikely((__pyx_t_13 < 0))) __PYX_ERR(0, 465, __pyx_L1_error)
    __pyx_t_14 = (!__pyx_t_13);


    if (__pyx_t_14) {

    } else {

      __pyx_t_12 = __pyx_t_14;

      goto __pyx_L8_bool_binop_done;
    }
    __pyx_t_14 = (__Pyx_PySequence_ContainsTF(__pyx_v_name, __pyx_v_sig_args, Py_NE)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(0, 465, __pyx_L1_error)

    __pyx_t_12 = __pyx_t_14;

    __pyx_L8_bool_binop_done:;
    if (unlikely(__pyx_t_12)) {


      /* "Cython/Tempita/_tempita.py":466
 *         for name, value in kw.items():
 *             if not var_kw and name not in sig_args:
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     'Unexpected argument %s' % name)
 *             if name in sig_args:
*/
      __pyx_t_5 = NULL;

      /* "Cython/Tempita/_tempita.py":467
 *             if not var_kw and name not in sig_args:
 *                 raise TypeError(
 *                     'Unexpected argument %s' % name)             # <<<<<<<<<<<<<<
 *             if name in sig_args:
 *                 values[sig_args] = value
*/
      __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Unexpected_argument_s, __pyx_v_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 467, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_15 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_3};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 466, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 466, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":465
 *         extra_kw = {}
 *         for name, value in kw.items():
 *             if not var_kw and name not in sig_args:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     'Unexpected argument %s' % name)
*/
    }

    /* "Cython/Tempita/_tempita.py":468
 *                 raise TypeError(
 *                     'Unexpected argument %s' % name)
 *             if name in sig_args:             # <<<<<<<<<<<<<<
 *                 values[sig_args] = value
 *             else:
*/
    __pyx_t_12 = (__Pyx_PySequence_ContainsTF(__pyx_v_name, __pyx_v_sig_args, Py_EQ)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 468, __pyx_L1_error)
    if (__pyx_t_12) {


      /* "Cython/Tempita/_tempita.py":469
 *                     'Unexpected argument %s' % name)
 *             if name in sig_args:
 *                 values[sig_args] = value             # <<<<<<<<<<<<<<
 *             else:
 *                 extra_kw[name] = value
*/
      if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_sig_args, __pyx_v_value) < 0))) __PYX_ERR(0, 469, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":468
 *                 raise TypeError(
 *                     'Unexpected argument %s' % name)
 *             if name in sig_args:             # <<<<<<<<<<<<<<
 *                 values[sig_args] = value
 *             else:
*/
      goto __pyx_L10;
    }

    /* "Cython/Tempita/_tempita.py":471
 *                 values[sig_args] = value
 *             else:
 *                 extra_kw[name] = value             # <<<<<<<<<<<<<<
 *         args = list(args)
 *         sig_args = list(sig_args)
*/
    /*else*/ {
      if (unlikely((PyDict_SetItem(__pyx_v_extra_kw, __pyx_v_name, __pyx_v_value) < 0))) __PYX_ERR(0, 471, __pyx_L1_error)
    }
    __pyx_L10:;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":472
 *             else:
 *                 extra_kw[name] = value
 *         args = list(args)             # <<<<<<<<<<<<<<
 *         sig_args = list(sig_args)
 *         while args:
*/
  __pyx_t_1 = PySequence_List(__pyx_v_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_args, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":473
 *                 extra_kw[name] = value
 *         args = list(args)
 *         sig_args = list(sig_args)             # <<<<<<<<<<<<<<
 *         while args:
 *             while sig_args and sig_args[0] in values:
*/
  __pyx_t_1 = PySequence_List(__pyx_v_sig_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_sig_args, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":474
 *         args = list(args)
 *         sig_args = list(sig_args)
 *         while args:             # <<<<<<<<<<<<<<
 *             while sig_args and sig_args[0] in values:
 *                 sig_args.pop(0)
*/
  while (1) {
    __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_v_args); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 474, __pyx_L1_error)

    if (!__pyx_t_12) break;

    /* "Cython/Tempita/_tempita.py":475
 *         sig_args = list(sig_args)
 *         while args:
 *             while sig_args and sig_args[0] in values:             # <<<<<<<<<<<<<<
 *                 sig_args.pop(0)
 *             if sig_args:
*/
    while (1) {
      __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_sig_args); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(0, 475, __pyx_L1_error)
      if (__pyx_t_14) {

      } else {

        __pyx_t_12 = __pyx_t_14;

        goto __pyx_L15_bool_binop_done;
      }
      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_sig_args, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 475, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_14 = (__Pyx_PyDict_ContainsTF(__pyx_t_1, __pyx_v_values, Py_EQ)); if (unlikely((__pyx_t_14 < 0))) __PYX_ERR(0, 475, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      __pyx_t_12 = __pyx_t_14;

      __pyx_L15_bool_binop_done:;

      if (!__pyx_t_12) break;

      /* "Cython/Tempita/_tempita.py":476
 *         while args:
 *             while sig_args and sig_args[0] in values:
 *                 sig_args.pop(0)             # <<<<<<<<<<<<<<
 *             if sig_args:
 *                 name = sig_args.pop(0)
*/
      __pyx_t_1 = __Pyx_PyObject_PopIndex(__pyx_v_sig_args, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 476, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }

    /* "Cython/Tempita/_tempita.py":477
 *             while sig_args and sig_args[0] in values:
 *                 sig_args.pop(0)
 *             if sig_args:             # <<<<<<<<<<<<<<
 *                 name = sig_args.pop(0)
 *                 values[name] = args.pop(0)
*/
    __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_v_sig_args); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 477, __pyx_L1_error)
    if (__pyx_t_12) {


      /* "Cython/Tempita/_tempita.py":478
 *                 sig_args.pop(0)
 *             if sig_args:
 *                 name = sig_args.pop(0)             # <<<<<<<<<<<<<<
 *                 values[name] = args.pop(0)
 *             elif var_args:
*/
      __pyx_t_1 = __Pyx_PyList_PopIndex(__pyx_v_sig_args, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 478, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":479
 *             if sig_args:
 *                 name = sig_args.pop(0)
 *                 values[name] = args.pop(0)             # <<<<<<<<<<<<<<
 *             elif var_args:
 *                 values[var_args] = tuple(args)
*/
      __pyx_t_1 = __Pyx_PyObject_PopIndex(__pyx_v_args, __pyx_mstate_global->__pyx_int_0, 0, 1, Py_ssize_t, PyLong_FromSsize_t); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 479, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_name, __pyx_t_1) < 0))) __PYX_ERR(0, 479, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":477
 *             while sig_args and sig_args[0] in values:
 *                 sig_args.pop(0)
 *             if sig_args:             # <<<<<<<<<<<<<<
 *                 name = sig_args.pop(0)
 *                 values[name] = args.pop(0)
*/
      goto __pyx_L17;
    }

    /* "Cython/Tempita/_tempita.py":480
 *                 name = sig_args.pop(0)
 *                 values[name] = args.pop(0)
 *             elif var_args:             # <<<<<<<<<<<<<<
 *                 values[var_args] = tuple(args)
 *                 break
*/
    __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_v_var_args); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 480, __pyx_L1_error)
    if (likely(__pyx_t_12)) {


      /* "Cython/Tempita/_tempita.py":481
 *                 values[name] = args.pop(0)
 *             elif var_args:
 *                 values[var_args] = tuple(args)             # <<<<<<<<<<<<<<
 *                 break
 *             else:
*/
      __pyx_t_1 = __Pyx_PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 481, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_var_args, __pyx_t_1) < 0))) __PYX_ERR(0, 481, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":482
 *             elif var_args:
 *                 values[var_args] = tuple(args)
 *                 break             # <<<<<<<<<<<<<<
 *             else:
 *                 raise TypeError(
*/
      goto __pyx_L12_break;

      /* "Cython/Tempita/_tempita.py":480
 *                 name = sig_args.pop(0)
 *                 values[name] = args.pop(0)
 *             elif var_args:             # <<<<<<<<<<<<<<
 *                 values[var_args] = tuple(args)
 *                 break
*/
    }

    /* "Cython/Tempita/_tempita.py":484
 *                 break
 *             else:
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     'Extra position arguments: %s'
 *                     % ', '.join([repr(v) for v in args]))
*/
    /*else*/ {
      __pyx_t_4 = NULL;

      /* "Cython/Tempita/_tempita.py":486
 *                 raise TypeError(
 *                     'Extra position arguments: %s'
 *                     % ', '.join([repr(v) for v in args]))             # <<<<<<<<<<<<<<
 *         for name, value_expr in defaults.items():
 *             if name not in values:
*/
      { /* enter inner scope */
        __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 486, __pyx_L20_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (likely(PyList_CheckExact(__pyx_v_args)) || PyTuple_CheckExact(__pyx_v_args)) {
          __pyx_t_5 = __pyx_v_args; __Pyx_INCREF(__pyx_t_5);
          __pyx_t_9 = 0;
          __pyx_t_16 = NULL;
        } else {
          __pyx_t_9 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_args); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 486, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_16 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 486, __pyx_L20_error)
        }
        for (;;) {
          if (likely(!__pyx_t_16)) {
            if (likely(PyList_CheckExact(__pyx_t_5))) {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 486, __pyx_L20_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_5, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
              ++__pyx_t_9;
            } else {
              {
                Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
                #if !CYTHON_ASSUME_SAFE_SIZE
                if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 486, __pyx_L20_error)
                #endif
                if (__pyx_t_9 >= __pyx_temp) break;
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              __pyx_t_2 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_9));
              #else
              __pyx_t_2 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_9);
              #endif
              ++__pyx_t_9;
            }
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 486, __pyx_L20_error)
          } else {
            __pyx_t_2 = __pyx_t_16(__pyx_t_5);
            if (unlikely(!__pyx_t_2)) {
              PyObject* exc_type = PyErr_Occurred();
              if (exc_type) {
                if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 486, __pyx_L20_error)
                PyErr_Clear();
              }
              break;
            }
          }
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_v, __pyx_t_2);
          __pyx_t_2 = 0;
          __pyx_t_2 = PyObject_Repr(__pyx_8genexpr1__pyx_v_v); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 486, __pyx_L20_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_GIVEREF(__pyx_t_2);
          if (unlikely(__Pyx_ListComp_AppendAndDecref(__pyx_t_3, __pyx_t_2))) __PYX_ERR(0, 486, __pyx_L20_error)
          __pyx_t_2 = 0;
        }
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_v); __pyx_8genexpr1__pyx_v_v = 0;
        goto __pyx_L24_exit_scope;
        __pyx_L20_error:;
        __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_v); __pyx_8genexpr1__pyx_v_v = 0;
        goto __pyx_L1_error;
        __pyx_L24_exit_scope:;
      } /* exit inner scope */
      __pyx_t_5 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__10, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 486, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Extra_position_arguments_s, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 486, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_15 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_3};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 484, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_Raise(__pyx_t_1, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __PYX_ERR(0, 484, __pyx_L1_error)
    }
    __pyx_L17:;
  }
  __pyx_L12_break:;

  /* "Cython/Tempita/_tempita.py":487
 *                     'Extra position arguments: %s'
 *                     % ', '.join([repr(v) for v in args]))
 *         for name, value_expr in defaults.items():             # <<<<<<<<<<<<<<
 *             if name not in values:
 *                 values[name] = self._template._eval(
*/
  __pyx_t_9 = 0;
  if (unlikely(__pyx_v_defaults == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "items");
    __PYX_ERR(0, 487, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_defaults, 0, __pyx_mstate_global->__pyx_n_u_items, (&__pyx_t_8), (&__pyx_t_10)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  while (1) {
    __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_8, &__pyx_t_9, &__pyx_t_3, &__pyx_t_4, NULL, __pyx_t_10);
    if (unlikely(__pyx_t_11 == 0)) break;
    if (unlikely(__pyx_t_11 == -1)) __PYX_ERR(0, 487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_3);
    __pyx_t_3 = 0;
    __Pyx_XDECREF_SET(__pyx_v_value_expr, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":488
 *                     % ', '.join([repr(v) for v in args]))
 *         for name, value_expr in defaults.items():
 *             if name not in values:             # <<<<<<<<<<<<<<
 *                 values[name] = self._template._eval(
 *                     value_expr, self._ns, self._pos)
*/
    __pyx_t_12 = (__Pyx_PyDict_ContainsTF(__pyx_v_name, __pyx_v_values, Py_NE)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 488, __pyx_L1_error)
    if (__pyx_t_12) {


      /* "Cython/Tempita/_tempita.py":489
 *         for name, value_expr in defaults.items():
 *             if name not in values:
 *                 values[name] = self._template._eval(             # <<<<<<<<<<<<<<
 *                     value_expr, self._ns, self._pos)
 *         for name in sig_args:
*/
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_template_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 489, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __pyx_t_5;
      __Pyx_INCREF(__pyx_t_3);

      /* "Cython/Tempita/_tempita.py":490
 *             if name not in values:
 *                 values[name] = self._template._eval(
 *                     value_expr, self._ns, self._pos)             # <<<<<<<<<<<<<<
 *         for name in sig_args:
 *             if name not in values:
*/
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_ns_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 490, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_pos_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 490, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_15 = 0;
      {
        PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_value_expr, __pyx_t_2, __pyx_t_6};
        __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_eval_2, __pyx_callargs+__pyx_t_15, (4-__pyx_t_15) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 489, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }

      /* "Cython/Tempita/_tempita.py":489
 *         for name, value_expr in defaults.items():
 *             if name not in values:
 *                 values[name] = self._template._eval(             # <<<<<<<<<<<<<<
 *                     value_expr, self._ns, self._pos)
 *         for name in sig_args:
*/
      if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_name, __pyx_t_4) < 0))) __PYX_ERR(0, 489, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "Cython/Tempita/_tempita.py":488
 *                     % ', '.join([repr(v) for v in args]))
 *         for name, value_expr in defaults.items():
 *             if name not in values:             # <<<<<<<<<<<<<<
 *                 values[name] = self._template._eval(
 *                     value_expr, self._ns, self._pos)
*/
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":491
 *                 values[name] = self._template._eval(
 *                     value_expr, self._ns, self._pos)
 *         for name in sig_args:             # <<<<<<<<<<<<<<
 *             if name not in values:
 *                 raise TypeError(
*/
  __pyx_t_1 = __pyx_v_sig_args; __Pyx_INCREF(__pyx_t_1);
  __pyx_t_8 = 0;
  for (;;) {
    {
      Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_1);
      #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 491, __pyx_L1_error)
      #endif
      if (__pyx_t_8 >= __pyx_temp) break;
    }
    __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_1, __pyx_t_8, __Pyx_ReferenceSharing_OwnStrongReference);
    ++__pyx_t_8;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "Cython/Tempita/_tempita.py":492
 *                     value_expr, self._ns, self._pos)
 *         for name in sig_args:
 *             if name not in values:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     'Missing argument: %s' % name)
*/
    __pyx_t_12 = (__Pyx_PyDict_ContainsTF(__pyx_v_name, __pyx_v_values, Py_NE)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 492, __pyx_L1_error)
    if (unlikely(__pyx_t_12)) {


      /* "Cython/Tempita/_tempita.py":493
 *         for name in sig_args:
 *             if name not in values:
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     'Missing argument: %s' % name)
 *         if var_kw:
*/
      __pyx_t_5 = NULL;

      /* "Cython/Tempita/_tempita.py":494
 *             if name not in values:
 *                 raise TypeError(
 *                     'Missing argument: %s' % name)             # <<<<<<<<<<<<<<
 *         if var_kw:
 *             values[var_kw] = extra_kw
*/
      __pyx_t_6 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Missing_argument_s, __pyx_v_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 494, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_15 = 1;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_t_6};
        __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_15, (2-__pyx_t_15) | (__pyx_t_15*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 493, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 493, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":492
 *                     value_expr, self._ns, self._pos)
 *         for name in sig_args:
 *             if name not in values:             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     'Missing argument: %s' % name)
*/
    }

    /* "Cython/Tempita/_tempita.py":491
 *                 values[name] = self._template._eval(
 *                     value_expr, self._ns, self._pos)
 *         for name in sig_args:             # <<<<<<<<<<<<<<
 *             if name not in values:
 *                 raise TypeError(
*/
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":495
 *                 raise TypeError(
 *                     'Missing argument: %s' % name)
 *         if var_kw:             # <<<<<<<<<<<<<<
 *             values[var_kw] = extra_kw
 *         return values
*/
  __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_v_var_kw); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 495, __pyx_L1_error)
  if (__pyx_t_12) {


    /* "Cython/Tempita/_tempita.py":496
 *                     'Missing argument: %s' % name)
 *         if var_kw:
 *             values[var_kw] = extra_kw             # <<<<<<<<<<<<<<
 *         return values
 * 
*/
    if (unlikely((PyDict_SetItem(__pyx_v_values, __pyx_v_var_kw, __pyx_v_extra_kw) < 0))) __PYX_ERR(0, 496, __pyx_L1_error)

    /* "Cython/Tempita/_tempita.py":495
 *                 raise TypeError(
 *                     'Missing argument: %s' % name)
 *         if var_kw:             # <<<<<<<<<<<<<<
 *             values[var_kw] = extra_kw
 *         return values
*/
  }

  /* "Cython/Tempita/_tempita.py":497
 *         if var_kw:
 *             values[var_kw] = extra_kw
 *         return values             # <<<<<<<<<<<<<<
 * 
 * 
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_v_values);
      __pyx_r = __pyx_v_values;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":460
 *             self._body, self._ns, self._pos, bound_self=obj)
 * 
 *     def _parse_signature(self, args, kw):             # <<<<<<<<<<<<<<
 *         values = {}
 *         sig_args, var_args, var_kw, defaults = self._func_signature
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateDef._parse_signature", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_values);
  __Pyx_XDECREF(__pyx_v_sig_args);
  __Pyx_XDECREF(__pyx_v_var_args);
  __Pyx_XDECREF(__pyx_v_var_kw);
  __Pyx_XDECREF(__pyx_v_defaults);
  __Pyx_XDECREF(__pyx_v_extra_kw);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_value_expr);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_v);
  __Pyx_XDECREF(__pyx_v_args);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":502
 * class TemplateObject:
 * 
 *     def __init__(self, name):             # <<<<<<<<<<<<<<
 *         self.__name = name
 *         self.get = TemplateObjectGetter(self)
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_14TemplateObject_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_14TemplateObject_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_14TemplateObject_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_14TemplateObject_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 502, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 502, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 502, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 502, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, i); __PYX_ERR(0, 502, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 502, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 502, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_name = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 502, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObject.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_14TemplateObject___init__(__pyx_self, __pyx_v_self, __pyx_v_name);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_14TemplateObject___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "Cython/Tempita/_tempita.py":503
 * 
 *     def __init__(self, name):
 *         self.__name = name             # <<<<<<<<<<<<<<
 *         self.get = TemplateObjectGetter(self)
 * 
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_TemplateObject__name, __pyx_v_name) < (0)) __PYX_ERR(0, 503, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":504
 *     def __init__(self, name):
 *         self.__name = name
 *         self.get = TemplateObjectGetter(self)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_self};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 504, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_get, __pyx_t_1) < (0)) __PYX_ERR(0, 504, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "Cython/Tempita/_tempita.py":502
 * class TemplateObject:
 * 
 *     def __init__(self, name):             # <<<<<<<<<<<<<<
 *         self.__name = name
 *         self.get = TemplateObjectGetter(self)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObject.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":506
 *         self.get = TemplateObjectGetter(self)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s>' % (self.__class__.__name__, self.__name)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_14TemplateObject_3__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_14TemplateObject_3__repr__ = {"__repr__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_14TemplateObject_3__repr__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_14TemplateObject_3__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_14TemplateObject_2__repr__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_14TemplateObject_2__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4[5];
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "Cython/Tempita/_tempita.py":507
 * 
 *     def __repr__(self):
 *         return '<%s %s>' % (self.__class__.__name__, self.__name)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_TemplateObject__name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4[0] = __pyx_mstate_global->__pyx_kp_u__3;
  __pyx_t_4[1] = __pyx_t_1;
  __pyx_t_4[2] = __pyx_mstate_global->__pyx_kp_u_;
  __pyx_t_4[3] = __pyx_t_3;
  __pyx_t_4[4] = __pyx_mstate_global->__pyx_kp_u__4;
  __pyx_t_5 = 3;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4[1]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4[3]);
  #endif
  __pyx_t_6 = 0;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_6 |= __Pyx_PyUnicode_KIND_04(__pyx_t_4[1]) | __Pyx_PyUnicode_KIND_04(__pyx_t_4[3]);
  #endif
  __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_5, __pyx_t_6);
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_2;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":506
 *         self.get = TemplateObjectGetter(self)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s>' % (self.__class__.__name__, self.__name)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObject.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":512
 * class TemplateObjectGetter:
 * 
 *     def __init__(self, template_obj):             # <<<<<<<<<<<<<<
 *         self.__template_obj = template_obj
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_1__init__ = {"__init__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_1__init__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_1__init__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_template_obj = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_template_obj,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 512, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 512, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 512, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__init__", 0) < (0)) __PYX_ERR(0, 512, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, i); __PYX_ERR(0, 512, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 512, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 512, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_template_obj = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 512, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObjectGetter.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter___init__(__pyx_self, __pyx_v_self, __pyx_v_template_obj);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_template_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "Cython/Tempita/_tempita.py":513
 * 
 *     def __init__(self, template_obj):
 *         self.__template_obj = template_obj             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, attr):
*/
  if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter__template, __pyx_v_template_obj) < (0)) __PYX_ERR(0, 513, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":512
 * class TemplateObjectGetter:
 * 
 *     def __init__(self, template_obj):             # <<<<<<<<<<<<<<
 *         self.__template_obj = template_obj
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObjectGetter.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":515
 *         self.__template_obj = template_obj
 * 
 *     def __getattr__(self, attr):             # <<<<<<<<<<<<<<
 *         return getattr(self.__template_obj, attr, Empty)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_3__getattr__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_3__getattr__ = {"__getattr__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_3__getattr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_3__getattr__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_attr = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,&__pyx_mstate_global->__pyx_n_u_attr,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 515, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 515, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 515, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "__getattr__", 0) < (0)) __PYX_ERR(0, 515, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, i); __PYX_ERR(0, 515, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 515, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 515, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
    __pyx_v_attr = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 515, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObjectGetter.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_2__getattr__(__pyx_self, __pyx_v_self, __pyx_v_attr);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_2__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_attr) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "Cython/Tempita/_tempita.py":516
 * 
 *     def __getattr__(self, attr):
 *         return getattr(self.__template_obj, attr, Empty)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter__template); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_Empty); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_GetAttr3(__pyx_t_1, __pyx_v_attr, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_3;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":515
 *         self.__template_obj = template_obj
 * 
 *     def __getattr__(self, attr):             # <<<<<<<<<<<<<<
 *         return getattr(self.__template_obj, attr, Empty)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObjectGetter.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":518
 *         return getattr(self.__template_obj, attr, Empty)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s around %r>' % (self.__class__.__name__, self.__template_obj)
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_5__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_5__repr__ = {"__repr__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_5__repr__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_5__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_4__repr__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_4__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4[5];
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "Cython/Tempita/_tempita.py":519
 * 
 *     def __repr__(self):
 *         return '<%s around %r>' % (self.__class__.__name__, self.__template_obj)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter__template); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_2), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4[0] = __pyx_mstate_global->__pyx_kp_u__3;
  __pyx_t_4[1] = __pyx_t_1;
  __pyx_t_4[2] = __pyx_mstate_global->__pyx_kp_u_around;
  __pyx_t_4[3] = __pyx_t_3;
  __pyx_t_4[4] = __pyx_mstate_global->__pyx_kp_u__4;
  __pyx_t_5 = 10;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4[1]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4[3]);
  #endif
  __pyx_t_6 = 0;
  #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
  __pyx_t_6 |= __Pyx_PyUnicode_KIND_04(__pyx_t_4[1]) | __Pyx_PyUnicode_KIND_04(__pyx_t_4[3]);
  #endif
  __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_5, __pyx_t_6);
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_2;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":518
 *         return getattr(self.__template_obj, attr, Empty)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s around %r>' % (self.__class__.__name__, self.__template_obj)
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("Cython.Tempita._tempita.TemplateObjectGetter.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":523
 * 
 * class _Empty:
 *     def __call__(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_1__call__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_1__call__ = {"__call__", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_1__call__, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_1__call__(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  CYTHON_UNUSED PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_kw = 0;
  #if !CYTHON_VECTORCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__ (wrapper)", 0);
  #if !CYTHON_VECTORCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_self,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 523, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        default:
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 523, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kw, values, used_pos_args, __pyx_kwds_len, "__call__", 1) < (0)) __PYX_ERR(0, 523, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, i); __PYX_ERR(0, 523, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs < 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 523, __pyx_L3_error)
    }
    __pyx_v_self = values[0];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, __pyx_nargs); __PYX_ERR(0, 523, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_XDECREF(__pyx_v_kw); __pyx_v_kw = 0;
  __Pyx_AddTraceback("Cython.Tempita._tempita._Empty.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_6_Empty___call__(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kw);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_XDECREF(__pyx_v_kw);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty___call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_args, CYTHON_UNUSED PyObject *__pyx_v_kw) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__", 0);

  /* "Cython/Tempita/_tempita.py":524
 * class _Empty:
 *     def __call__(self, *args, **kw):
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_v_self);
      __pyx_r = __pyx_v_self;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":523
 * 
 * class _Empty:
 *     def __call__(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":526
 *         return self
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return ''
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_3__str__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_3__str__ = {"__str__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_3__str__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_3__str__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_2__str__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_2__str__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "Cython/Tempita/_tempita.py":527
 * 
 *     def __str__(self):
 *         return ''             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
      __pyx_r = __pyx_mstate_global->__pyx_kp_u__5;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":526
 *         return self
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return ''
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":529
 *         return ''
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Empty'
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_5__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_5__repr__ = {"__repr__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_5__repr__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_5__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_4__repr__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_4__repr__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "Cython/Tempita/_tempita.py":530
 * 
 *     def __repr__(self):
 *         return 'Empty'             # <<<<<<<<<<<<<<
 * 
 *     def __unicode__(self):
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_Empty);
      __pyx_r = __pyx_mstate_global->__pyx_n_u_Empty;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":529
 *         return ''
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Empty'
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":532
 *         return 'Empty'
 * 
 *     def __unicode__(self):             # <<<<<<<<<<<<<<
 *         return ''
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_7__unicode__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_7__unicode__ = {"__unicode__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_7__unicode__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_7__unicode__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_6__unicode__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_6__unicode__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__unicode__", 0);

  /* "Cython/Tempita/_tempita.py":533
 * 
 *     def __unicode__(self):
 *         return ''             # <<<<<<<<<<<<<<
 * 
 *     def __iter__(self):
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
      __pyx_r = __pyx_mstate_global->__pyx_kp_u__5;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":532
 *         return 'Empty'
 * 
 *     def __unicode__(self):             # <<<<<<<<<<<<<<
 *         return ''
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":535
 *         return ''
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return iter(())
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_9__iter__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_9__iter__ = {"__iter__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_9__iter__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_9__iter__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_8__iter__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_8__iter__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__iter__", 0);

  /* "Cython/Tempita/_tempita.py":536
 * 
 *     def __iter__(self):
 *         return iter(())             # <<<<<<<<<<<<<<
 * 
 *     def __bool__(self):
*/
  __pyx_t_1 = PyObject_GetIter(__pyx_mstate_global->__pyx_empty_tuple); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __pyx_r = __pyx_t_1;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":535
 *         return ''
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return iter(())
 * 
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("Cython.Tempita._tempita._Empty.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":538
 *         return iter(())
 * 
 *     def __bool__(self):             # <<<<<<<<<<<<<<
 *         return False
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_11__bool__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_11__bool__ = {"__bool__", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_11__bool__, METH_O, 0};
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_6_Empty_11__bool__(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bool__ (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_10__bool__(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_6_Empty_10__bool__(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bool__", 0);

  /* "Cython/Tempita/_tempita.py":539
 * 
 *     def __bool__(self):
 *         return False             # <<<<<<<<<<<<<<
 * 
 * Empty = _Empty()
*/
  {
    PyObject *__pyx_temp;
    {
      __pyx_temp = __pyx_r;
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
    }
    __Pyx_XDECREF(__pyx_temp);
  }
  goto __pyx_L0;

  /* "Cython/Tempita/_tempita.py":538
 *         return iter(())
 * 
 *     def __bool__(self):             # <<<<<<<<<<<<<<
 *         return False
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "Cython/Tempita/_tempita.py":549
 * 
 * 
 * def lex(s, name=None, trim_whitespace=True, line_offset=0, delimiters=None) -> list:             # <<<<<<<<<<<<<<
 *     """
 *     Lex a string into chunks:
*/

/* Python wrapper */
static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_9lex(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_6Cython_7Tempita_8_tempita_8lex, "\n    Lex a string into chunks:\n\n        >>> lex(\047hey\047)\n        [\047hey\047]\n        >>> lex(\047hey {{you}}\047)\n        [\047hey \047, (\047you\047, (1, 7))]\n        >>> lex(\047hey {{\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: No }} to finish last expression at line 1 column 7\n        >>> lex(\047hey }}\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: }} outside expression at line 1 column 7\n        >>> lex(\047hey {{ {{\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: {{ inside expression at line 1 column 10\n\n    ");
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_9lex = {"lex", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_9lex, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6Cython_7Tempita_8_tempita_8lex};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_9lex(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_s = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_trim_whitespace = 0;
      PyObject *__pyx_v_line_offset = 0;
      PyObject *__pyx_v_delimiters = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[5] = {0,0,0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("lex (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s_2,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_trim_whitespace,&__pyx_mstate_global->__pyx_n_u_line_offset,&__pyx_mstate_global->__pyx_n_u_delimiters,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 549, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  5:
            values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  4:
            values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "lex", 0) < (0)) __PYX_ERR(0, 549, __pyx_L3_error)
          if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
          if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_True)));
          if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
          if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));
          for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("lex", 0, 1, 5, i); __PYX_ERR(0, 549, __pyx_L3_error) }
          }
        } else {
          switch (__pyx_nargs) {
            case  5:
            values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  4:
            values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 549, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 549, __pyx_L3_error)
            break;
            default: goto __pyx_L5_argtuple_error;
          }
          if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
          if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_True)));
          if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
          if (!values[4]) values[4] = __Pyx_NewRef(((PyObject *)Py_None));
        }
        __pyx_v_s = values[0];
        __pyx_v_name = values[1];
        __pyx_v_trim_whitespace = values[2];
        __pyx_v_line_offset = values[3];
        __pyx_v_delimiters = values[4];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("lex", 0, 1, 5, __pyx_nargs); __PYX_ERR(0, 549, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.lex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_8lex(__pyx_self, __pyx_v_s, __pyx_v_name, __pyx_v_trim_whitespace, __pyx_v_line_offset, __pyx_v_delimiters);

      /* function exit code */
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_8lex(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s, PyObject *__pyx_v_name, PyObject *__pyx_v_trim_whitespace, PyObject *__pyx_v_line_offset, PyObject *__pyx_v_delimiters) {
      PyObject *__pyx_v_start_braces = 0;
      PyObject *__pyx_v_end_braces = 0;
      int __pyx_v_in_expr;
      PyObject *__pyx_v_chunks = NULL;
      PyObject *__pyx_v_last = NULL;
      PyObject *__pyx_v_last_pos = NULL;
      PyObject *__pyx_v_token_re = NULL;
      PyObject *__pyx_v_match = NULL;
      PyObject *__pyx_v_expr = 0;
      PyObject *__pyx_v_pos = NULL;
      PyObject *__pyx_v_part = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      int __pyx_t_2;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *__pyx_t_5 = NULL;
      PyObject *__pyx_t_6 = NULL;
      PyObject *__pyx_t_7 = NULL;
      PyObject *__pyx_t_8[3];
      Py_ssize_t __pyx_t_9;
      int __pyx_t_10;
      size_t __pyx_t_11;
      PyObject *(*__pyx_t_12)(PyObject *);
      int __pyx_t_13;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("lex", 0);

      /* "Cython/Tempita/_tempita.py":571
 * 
 *     """
 *     start_braces: str = delimiters[0] if delimiters is not None else Template.default_namespace['start_braces']             # <<<<<<<<<<<<<<
 *     end_braces: str = delimiters[1] if delimiters is not None else Template.default_namespace['end_braces']
 * 
*/
      __pyx_t_2 = (__pyx_v_delimiters != Py_None);
      if (__pyx_t_2) {
        __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_delimiters, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 571, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 571, __pyx_L1_error)
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      } else {
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Template); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 571, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 571, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_start_braces); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 571, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 571, __pyx_L1_error)
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      }

      __pyx_v_start_braces = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":572
 *     """
 *     start_braces: str = delimiters[0] if delimiters is not None else Template.default_namespace['start_braces']
 *     end_braces: str = delimiters[1] if delimiters is not None else Template.default_namespace['end_braces']             # <<<<<<<<<<<<<<
 * 
 *     in_expr = False
*/
      __pyx_t_2 = (__pyx_v_delimiters != Py_None);
      if (__pyx_t_2) {
        __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_delimiters, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 572, __pyx_L1_error)
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      } else {
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_Template); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_default_namespace); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_end_braces); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 572, __pyx_L1_error)
        __pyx_t_1 = __pyx_t_3;
        __pyx_t_3 = 0;
      }

      __pyx_v_end_braces = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":574
 *     end_braces: str = delimiters[1] if delimiters is not None else Template.default_namespace['end_braces']
 * 
 *     in_expr = False             # <<<<<<<<<<<<<<
 *     chunks = []
 *     last = 0
*/
      __pyx_v_in_expr = 0;

      /* "Cython/Tempita/_tempita.py":575
 * 
 *     in_expr = False
 *     chunks = []             # <<<<<<<<<<<<<<
 *     last = 0
 *     last_pos = (line_offset + 1, 1)
*/
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 575, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_chunks = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":576
 *     in_expr = False
 *     chunks = []
 *     last = 0             # <<<<<<<<<<<<<<
 *     last_pos = (line_offset + 1, 1)
 * 
*/
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
      __pyx_v_last = __pyx_mstate_global->__pyx_int_0;

      /* "Cython/Tempita/_tempita.py":577
 *     chunks = []
 *     last = 0
 *     last_pos = (line_offset + 1, 1)             # <<<<<<<<<<<<<<
 * 
 *     token_re = re.compile(r'%s|%s' % (re.escape(start_braces),
*/
      __pyx_t_1 = __Pyx_PyLong_AddObjC(__pyx_v_line_offset, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 577, __pyx_L1_error);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_int_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_mstate_global->__pyx_int_1) != (0)) __PYX_ERR(0, 577, __pyx_L1_error);
      __pyx_t_1 = 0;
      __pyx_v_last_pos = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":579
 *     last_pos = (line_offset + 1, 1)
 * 
 *     token_re = re.compile(r'%s|%s' % (re.escape(start_braces),             # <<<<<<<<<<<<<<
 *                                       re.escape(end_braces)))
 *     for match in token_re.finditer(s):
*/
      __pyx_t_1 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_escape); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_start_braces); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "Cython/Tempita/_tempita.py":580
 * 
 *     token_re = re.compile(r'%s|%s' % (re.escape(start_braces),
 *                                       re.escape(end_braces)))             # <<<<<<<<<<<<<<
 *     for match in token_re.finditer(s):
 *         expr: str = match.group(0)
*/
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_escape); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_end_braces); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_t_4), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_8[0] = __pyx_t_6;
      __pyx_t_8[1] = __pyx_mstate_global->__pyx_kp_u__6;
      __pyx_t_8[2] = __pyx_t_7;

      /* "Cython/Tempita/_tempita.py":579
 *     last_pos = (line_offset + 1, 1)
 * 
 *     token_re = re.compile(r'%s|%s' % (re.escape(start_braces),             # <<<<<<<<<<<<<<
 *                                       re.escape(end_braces)))
 *     for match in token_re.finditer(s):
*/
      __pyx_t_9 = 1;
      #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
      __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8[0]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8[2]);
      #endif
      __pyx_t_10 = 0;
      #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
      __pyx_t_10 |= __Pyx_PyUnicode_KIND_04(__pyx_t_8[0]) | __Pyx_PyUnicode_KIND_04(__pyx_t_8[2]);
      #endif
      __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, __pyx_t_9, __pyx_t_10);
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_11 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
        assert(__pyx_t_1);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
        __pyx_t_11 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_4};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 579, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_v_token_re = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":581
 *     token_re = re.compile(r'%s|%s' % (re.escape(start_braces),
 *                                       re.escape(end_braces)))
 *     for match in token_re.finditer(s):             # <<<<<<<<<<<<<<
 *         expr: str = match.group(0)
 *         pos = find_position(s, match.end(), last, last_pos)
*/
      __pyx_t_5 = __pyx_v_token_re;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_11 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_s};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_finditer, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 581, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
        __pyx_t_5 = __pyx_t_3; __Pyx_INCREF(__pyx_t_5);
        __pyx_t_9 = 0;
        __pyx_t_12 = NULL;
      } else {
        __pyx_t_9 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 581, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_12 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 581, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      for (;;) {
        if (likely(!__pyx_t_12)) {
          if (likely(PyList_CheckExact(__pyx_t_5))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_5);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 581, __pyx_L1_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_5, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_9;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_5);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 581, __pyx_L1_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_3 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_9));
            #else
            __pyx_t_3 = __Pyx_PySequence_ITEM(__pyx_t_5, __pyx_t_9);
            #endif
            ++__pyx_t_9;
          }
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 581, __pyx_L1_error)
        } else {
          __pyx_t_3 = __pyx_t_12(__pyx_t_5);
          if (unlikely(!__pyx_t_3)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 581, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_XDECREF_SET(__pyx_v_match, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":582
 *                                       re.escape(end_braces)))
 *     for match in token_re.finditer(s):
 *         expr: str = match.group(0)             # <<<<<<<<<<<<<<
 *         pos = find_position(s, match.end(), last, last_pos)
 *         if expr == start_braces:
*/
        __pyx_t_4 = __pyx_v_match;
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_int_0};
          __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_group, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 582, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 582, __pyx_L1_error)
        __Pyx_XDECREF_SET(__pyx_v_expr, ((PyObject*)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":583
 *     for match in token_re.finditer(s):
 *         expr: str = match.group(0)
 *         pos = find_position(s, match.end(), last, last_pos)             # <<<<<<<<<<<<<<
 *         if expr == start_braces:
 *             if in_expr:
*/
        __pyx_t_4 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_find_position); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __pyx_v_match;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_end, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 583, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        __pyx_t_11 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_1))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
          __pyx_t_11 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[5] = {__pyx_t_4, __pyx_v_s, __pyx_t_7, __pyx_v_last, __pyx_v_last_pos};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_11, (5-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 583, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_XDECREF_SET(__pyx_v_pos, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":584
 *         expr: str = match.group(0)
 *         pos = find_position(s, match.end(), last, last_pos)
 *         if expr == start_braces:             # <<<<<<<<<<<<<<
 *             if in_expr:
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)
*/
        __pyx_t_2 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_v_expr, __pyx_v_start_braces, Py_EQ); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 584, __pyx_L1_error)
        if (__pyx_t_2) {


          /* "Cython/Tempita/_tempita.py":585
 *         pos = find_position(s, match.end(), last, last_pos)
 *         if expr == start_braces:
 *             if in_expr:             # <<<<<<<<<<<<<<
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)
 *             part = s[last:match.start()]
*/
          if (unlikely(__pyx_v_in_expr)) {

            /* "Cython/Tempita/_tempita.py":586
 *         if expr == start_braces:
 *             if in_expr:
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)             # <<<<<<<<<<<<<<
 *             part = s[last:match.start()]
 *             if part:
*/
            __pyx_t_1 = NULL;
            __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 586, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __pyx_t_4 = __Pyx_PyUnicode_Unicode(__pyx_v_start_braces); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 586, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_6 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_inside_expression); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 586, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __pyx_t_11 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_7))) {
              __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_7);
              assert(__pyx_t_1);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
              __Pyx_INCREF(__pyx_t_1);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
              __pyx_t_11 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_t_6, __pyx_v_pos, __pyx_v_name};
              #if CYTHON_VECTORCALL
              __pyx_t_4 = __pyx_mstate_global->__pyx_tuple[5];
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 586, __pyx_L1_error)
              __Pyx_INCREF(__pyx_t_4);
              #else
              {
                PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
                __pyx_t_4 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
                if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 586, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_4);
              }
              #endif
              __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
              __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
              __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
              __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
              __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
              if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 586, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
            }
            __Pyx_Raise(__pyx_t_3, 0, 0, 0);
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __PYX_ERR(0, 586, __pyx_L1_error)

            /* "Cython/Tempita/_tempita.py":585
 *         pos = find_position(s, match.end(), last, last_pos)
 *         if expr == start_braces:
 *             if in_expr:             # <<<<<<<<<<<<<<
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)
 *             part = s[last:match.start()]
*/
          }

          /* "Cython/Tempita/_tempita.py":587
 *             if in_expr:
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)
 *             part = s[last:match.start()]             # <<<<<<<<<<<<<<
 *             if part:
 *                 chunks.append(part)
*/
          __pyx_t_7 = __pyx_v_match;
          __Pyx_INCREF(__pyx_t_7);
          __pyx_t_11 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
            __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_start, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 587, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __pyx_t_7 = __Pyx_PyObject_GetSlice(__pyx_v_s, 0, 0, &__pyx_v_last, &__pyx_t_3, NULL, 0, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 587, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_XDECREF_SET(__pyx_v_part, __pyx_t_7);
          __pyx_t_7 = 0;

          /* "Cython/Tempita/_tempita.py":588
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)
 *             part = s[last:match.start()]
 *             if part:             # <<<<<<<<<<<<<<
 *                 chunks.append(part)
 *             in_expr = True
*/
          __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_part); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 588, __pyx_L1_error)
          if (__pyx_t_2) {


            /* "Cython/Tempita/_tempita.py":589
 *             part = s[last:match.start()]
 *             if part:
 *                 chunks.append(part)             # <<<<<<<<<<<<<<
 *             in_expr = True
 *         else:
*/
            __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_chunks, __pyx_v_part); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 589, __pyx_L1_error)


            /* "Cython/Tempita/_tempita.py":588
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)
 *             part = s[last:match.start()]
 *             if part:             # <<<<<<<<<<<<<<
 *                 chunks.append(part)
 *             in_expr = True
*/
          }

          /* "Cython/Tempita/_tempita.py":590
 *             if part:
 *                 chunks.append(part)
 *             in_expr = True             # <<<<<<<<<<<<<<
 *         else:
 *             if not in_expr:
*/
          __pyx_v_in_expr = 1;

          /* "Cython/Tempita/_tempita.py":584
 *         expr: str = match.group(0)
 *         pos = find_position(s, match.end(), last, last_pos)
 *         if expr == start_braces:             # <<<<<<<<<<<<<<
 *             if in_expr:
 *                 raise TemplateError(f'{start_braces} inside expression', position=pos, name=name)
*/
          goto __pyx_L5;
        }

        /* "Cython/Tempita/_tempita.py":592
 *             in_expr = True
 *         else:
 *             if not in_expr:             # <<<<<<<<<<<<<<
 *                 raise TemplateError(f'{end_braces} outside expression', position=pos, name=name)
 *             chunks.append((s[last:match.start()], last_pos))
*/
        /*else*/ {
          __pyx_t_2 = (!__pyx_v_in_expr);

          if (unlikely(__pyx_t_2)) {


            /* "Cython/Tempita/_tempita.py":593
 *         else:
 *             if not in_expr:
 *                 raise TemplateError(f'{end_braces} outside expression', position=pos, name=name)             # <<<<<<<<<<<<<<
 *             chunks.append((s[last:match.start()], last_pos))
 *             in_expr = False
*/
            __pyx_t_3 = NULL;
            __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 593, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_6 = __Pyx_PyUnicode_Unicode(__pyx_v_end_braces); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 593, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_1 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_outside_expression); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __pyx_t_11 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_4))) {
              __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
              assert(__pyx_t_3);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
              __Pyx_INCREF(__pyx_t_3);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
              __pyx_t_11 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_t_1, __pyx_v_pos, __pyx_v_name};
              #if CYTHON_VECTORCALL
              __pyx_t_6 = __pyx_mstate_global->__pyx_tuple[5];
              if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 593, __pyx_L1_error)
              __Pyx_INCREF(__pyx_t_6);
              #else
              {
                PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
                __pyx_t_6 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
                if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 593, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_6);
              }
              #endif
              __pyx_t_7 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
              __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
              __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
              __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
              __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
              if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 593, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_7);
            }
            __Pyx_Raise(__pyx_t_7, 0, 0, 0);
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            __PYX_ERR(0, 593, __pyx_L1_error)

            /* "Cython/Tempita/_tempita.py":592
 *             in_expr = True
 *         else:
 *             if not in_expr:             # <<<<<<<<<<<<<<
 *                 raise TemplateError(f'{end_braces} outside expression', position=pos, name=name)
 *             chunks.append((s[last:match.start()], last_pos))
*/
          }

          /* "Cython/Tempita/_tempita.py":594
 *             if not in_expr:
 *                 raise TemplateError(f'{end_braces} outside expression', position=pos, name=name)
 *             chunks.append((s[last:match.start()], last_pos))             # <<<<<<<<<<<<<<
 *             in_expr = False
 *         last = match.end()
*/
          __pyx_t_4 = __pyx_v_match;
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_11 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
            __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_start, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 594, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
          }
          __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_s, 0, 0, &__pyx_v_last, &__pyx_t_7, NULL, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 594, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_GIVEREF(__pyx_t_4);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 594, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_last_pos);
          __Pyx_GIVEREF(__pyx_v_last_pos);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_last_pos) != (0)) __PYX_ERR(0, 594, __pyx_L1_error);
          __pyx_t_4 = 0;
          __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_chunks, __pyx_t_7); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 594, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;


          /* "Cython/Tempita/_tempita.py":595
 *                 raise TemplateError(f'{end_braces} outside expression', position=pos, name=name)
 *             chunks.append((s[last:match.start()], last_pos))
 *             in_expr = False             # <<<<<<<<<<<<<<
 *         last = match.end()
 *         last_pos = pos
*/
          __pyx_v_in_expr = 0;
        }
        __pyx_L5:;

        /* "Cython/Tempita/_tempita.py":596
 *             chunks.append((s[last:match.start()], last_pos))
 *             in_expr = False
 *         last = match.end()             # <<<<<<<<<<<<<<
 *         last_pos = pos
 *     if in_expr:
*/
        __pyx_t_4 = __pyx_v_match;
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_11 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_end, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 596, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        __Pyx_DECREF_SET(__pyx_v_last, __pyx_t_7);
        __pyx_t_7 = 0;

        /* "Cython/Tempita/_tempita.py":597
 *             in_expr = False
 *         last = match.end()
 *         last_pos = pos             # <<<<<<<<<<<<<<
 *     if in_expr:
 *         raise TemplateError(
*/
        __Pyx_INCREF(__pyx_v_pos);
        __Pyx_DECREF_SET(__pyx_v_last_pos, __pyx_v_pos);

        /* "Cython/Tempita/_tempita.py":581
 *     token_re = re.compile(r'%s|%s' % (re.escape(start_braces),
 *                                       re.escape(end_braces)))
 *     for match in token_re.finditer(s):             # <<<<<<<<<<<<<<
 *         expr: str = match.group(0)
 *         pos = find_position(s, match.end(), last, last_pos)
*/
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":598
 *         last = match.end()
 *         last_pos = pos
 *     if in_expr:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
*/
      if (unlikely(__pyx_v_in_expr)) {

        /* "Cython/Tempita/_tempita.py":599
 *         last_pos = pos
 *     if in_expr:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
 *     part = s[last:]
*/
        __pyx_t_7 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 599, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);

        /* "Cython/Tempita/_tempita.py":600
 *     if in_expr:
 *         raise TemplateError(
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)             # <<<<<<<<<<<<<<
 *     part = s[last:]
 *     if part:
*/
        __pyx_t_6 = __Pyx_PyUnicode_Unicode(__pyx_v_end_braces); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_8[0] = __pyx_mstate_global->__pyx_kp_u_No;
        __pyx_t_8[1] = __pyx_t_6;
        __pyx_t_8[2] = __pyx_mstate_global->__pyx_kp_u_to_finish_last_expression;
        __pyx_t_9 = 29;
        #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
        __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8[1]);
        #endif
        __pyx_t_10 = 0;
        #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
        __pyx_t_10 |= __Pyx_PyUnicode_KIND_04(__pyx_t_8[1]);
        #endif
        __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, __pyx_t_9, __pyx_t_10);
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 600, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

        /* "Cython/Tempita/_tempita.py":599
 *         last_pos = pos
 *     if in_expr:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
 *     part = s[last:]
*/
        __pyx_t_11 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
          assert(__pyx_t_7);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
          __pyx_t_11 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_7, __pyx_t_1, __pyx_v_name, __pyx_v_last_pos};
          #if CYTHON_VECTORCALL
          __pyx_t_6 = __pyx_mstate_global->__pyx_tuple[10];
          if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 599, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_6);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_position};
            __pyx_t_6 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 599, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
          }
          #endif
          __pyx_t_5 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_6);
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 599, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_Raise(__pyx_t_5, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __PYX_ERR(0, 599, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":598
 *         last = match.end()
 *         last_pos = pos
 *     if in_expr:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
*/
      }

      /* "Cython/Tempita/_tempita.py":601
 *         raise TemplateError(
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
 *     part = s[last:]             # <<<<<<<<<<<<<<
 *     if part:
 *         chunks.append(part)
*/
      __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_s, 0, 0, &__pyx_v_last, NULL, NULL, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 601, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_v_part, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":602
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
 *     part = s[last:]
 *     if part:             # <<<<<<<<<<<<<<
 *         chunks.append(part)
 *     if trim_whitespace:
*/
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_part); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 602, __pyx_L1_error)
      if (__pyx_t_2) {


        /* "Cython/Tempita/_tempita.py":603
 *     part = s[last:]
 *     if part:
 *         chunks.append(part)             # <<<<<<<<<<<<<<
 *     if trim_whitespace:
 *         trim_lex(chunks)
*/
        __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_chunks, __pyx_v_part); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 603, __pyx_L1_error)


        /* "Cython/Tempita/_tempita.py":602
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
 *     part = s[last:]
 *     if part:             # <<<<<<<<<<<<<<
 *         chunks.append(part)
 *     if trim_whitespace:
*/
      }

      /* "Cython/Tempita/_tempita.py":604
 *     if part:
 *         chunks.append(part)
 *     if trim_whitespace:             # <<<<<<<<<<<<<<
 *         trim_lex(chunks)
 *     return chunks
*/
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_trim_whitespace); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 604, __pyx_L1_error)
      if (__pyx_t_2) {


        /* "Cython/Tempita/_tempita.py":605
 *         chunks.append(part)
 *     if trim_whitespace:
 *         trim_lex(chunks)             # <<<<<<<<<<<<<<
 *     return chunks
 * 
*/
        __pyx_t_4 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_trim_lex); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 605, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_11 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_6))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
          __pyx_t_11 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_chunks};
          __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_11, (2-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 605, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "Cython/Tempita/_tempita.py":604
 *     if part:
 *         chunks.append(part)
 *     if trim_whitespace:             # <<<<<<<<<<<<<<
 *         trim_lex(chunks)
 *     return chunks
*/
      }

      /* "Cython/Tempita/_tempita.py":606
 *     if trim_whitespace:
 *         trim_lex(chunks)
 *     return chunks             # <<<<<<<<<<<<<<
 * 
 * statement_re = re.compile(r'^(?:if |elif |for |def |inherit |default |py:)')
*/
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __Pyx_INCREF(__pyx_v_chunks);
          __pyx_r = __pyx_v_chunks;
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":549
 * 
 * 
 * def lex(s, name=None, trim_whitespace=True, line_offset=0, delimiters=None) -> list:             # <<<<<<<<<<<<<<
 *     """
 *     Lex a string into chunks:
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_7);
      __Pyx_AddTraceback("Cython.Tempita._tempita.lex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_start_braces);
      __Pyx_XDECREF(__pyx_v_end_braces);

      __Pyx_XDECREF(__pyx_v_chunks);
      __Pyx_XDECREF(__pyx_v_last);
      __Pyx_XDECREF(__pyx_v_last_pos);
      __Pyx_XDECREF(__pyx_v_token_re);
      __Pyx_XDECREF(__pyx_v_match);
      __Pyx_XDECREF(__pyx_v_expr);
      __Pyx_XDECREF(__pyx_v_pos);
      __Pyx_XDECREF(__pyx_v_part);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":614
 * 
 * 
 * def trim_lex(tokens: list):             # <<<<<<<<<<<<<<
 *     r"""
 *     Takes a lexed set of tokens, and removes whitespace when there is
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11trim_lex(PyObject *__pyx_self, PyObject *__pyx_v_tokens); /*proto*/
    PyDoc_STRVAR(__pyx_doc_6Cython_7Tempita_8_tempita_10trim_lex, "\n    Takes a lexed set of tokens, and removes whitespace when there is\n    a directive on a line by itself:\n\n       >>> tokens = lex(\047{{if x}}\\nx\\n{{endif}}\\ny\047, trim_whitespace=False)\n       >>> tokens\n       [(\047if x\047, (1, 3)), \047\\nx\\n\047, (\047endif\047, (3, 3)), \047\\ny\047]\n       >>> trim_lex(tokens)\n       >>> tokens\n       [(\047if x\047, (1, 3)), \047x\\n\047, (\047endif\047, (3, 3)), \047y\047]\n    ");
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_11trim_lex = {"trim_lex", (PyCFunction)__pyx_pw_6Cython_7Tempita_8_tempita_11trim_lex, METH_O, __pyx_doc_6Cython_7Tempita_8_tempita_10trim_lex};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_11trim_lex(PyObject *__pyx_self, PyObject *__pyx_v_tokens) {
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("trim_lex (wrapper)", 0);
      __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 614, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_10trim_lex(__pyx_self, ((PyObject*)__pyx_v_tokens));

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      goto __pyx_L5_cleaned_up;
      __pyx_L0:;
      __pyx_L5_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_10trim_lex(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens) {
      Py_ssize_t __pyx_v_i;
      PyObject *__pyx_v_last_trim = NULL;
      PyObject *__pyx_v_current = NULL;
      PyObject *__pyx_v_item = NULL;
      PyObject *__pyx_v_prev = NULL;
      PyObject *__pyx_v_next_chunk = NULL;
      PyObject *__pyx_v_prev_ok = NULL;
      PyObject *__pyx_v_m = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      Py_ssize_t __pyx_t_1;
      PyObject *__pyx_t_2 = NULL;
      Py_ssize_t __pyx_t_3;
      PyObject *__pyx_t_4 = NULL;
      int __pyx_t_5;
      PyObject *__pyx_t_6 = NULL;
      PyObject *__pyx_t_7 = NULL;
      PyObject *__pyx_t_8 = NULL;
      size_t __pyx_t_9;
      int __pyx_t_10;
      int __pyx_t_11;
      Py_ssize_t __pyx_t_12;
      PyObject *__pyx_t_13 = NULL;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("trim_lex", 0);

      /* "Cython/Tempita/_tempita.py":627
 *     """
 *     i: cython.Py_ssize_t
 *     last_trim = None             # <<<<<<<<<<<<<<
 *     for i, current in enumerate(tokens):
 *         if isinstance(current, str):
*/
      __Pyx_INCREF(Py_None);
      __pyx_v_last_trim = Py_None;

      /* "Cython/Tempita/_tempita.py":628
 *     i: cython.Py_ssize_t
 *     last_trim = None
 *     for i, current in enumerate(tokens):             # <<<<<<<<<<<<<<
 *         if isinstance(current, str):
 *             # we don't trim this
*/

      __pyx_t_1 = 0;
      __pyx_t_2 = __pyx_v_tokens; __Pyx_INCREF(__pyx_t_2);
      __pyx_t_3 = 0;
      for (;;) {
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
          #if !CYTHON_ASSUME_SAFE_SIZE
          if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 628, __pyx_L1_error)
          #endif
          if (__pyx_t_3 >= __pyx_temp) break;
        }
        __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_2, __pyx_t_3, __Pyx_ReferenceSharing_OwnStrongReference);
        ++__pyx_t_3;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 628, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_XDECREF_SET(__pyx_v_current, __pyx_t_4);
        __pyx_t_4 = 0;
        __pyx_v_i = __pyx_t_1;
        __pyx_t_1 = (__pyx_t_1 + 1);

        /* "Cython/Tempita/_tempita.py":629
 *     last_trim = None
 *     for i, current in enumerate(tokens):
 *         if isinstance(current, str):             # <<<<<<<<<<<<<<
 *             # we don't trim this
 *             continue
*/
        __pyx_t_5 = PyUnicode_Check(__pyx_v_current); 
        if (__pyx_t_5) {


          /* "Cython/Tempita/_tempita.py":631
 *         if isinstance(current, str):
 *             # we don't trim this
 *             continue             # <<<<<<<<<<<<<<
 *         item = current[0]
 *         if not statement_re.search(item) and item not in single_statements:
*/
          goto __pyx_L3_continue;

          /* "Cython/Tempita/_tempita.py":629
 *     last_trim = None
 *     for i, current in enumerate(tokens):
 *         if isinstance(current, str):             # <<<<<<<<<<<<<<
 *             # we don't trim this
 *             continue
*/
        }

        /* "Cython/Tempita/_tempita.py":632
 *             # we don't trim this
 *             continue
 *         item = current[0]             # <<<<<<<<<<<<<<
 *         if not statement_re.search(item) and item not in single_statements:
 *             continue
*/
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_current, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 632, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "Cython/Tempita/_tempita.py":633
 *             continue
 *         item = current[0]
 *         if not statement_re.search(item) and item not in single_statements:             # <<<<<<<<<<<<<<
 *             continue
 *         if not i:
*/
        __pyx_t_6 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_statement_re); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 633, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_search); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 633, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_9 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_8))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
          assert(__pyx_t_6);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
          __pyx_t_9 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_item};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 633, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 633, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_11 = (!__pyx_t_10);


        if (__pyx_t_11) {

        } else {

          __pyx_t_5 = __pyx_t_11;

          goto __pyx_L7_bool_binop_done;
        }
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_single_statements); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 633, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_11 = (__Pyx_PySequence_ContainsTF(__pyx_v_item, __pyx_t_4, Py_NE)); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 633, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        __pyx_t_5 = __pyx_t_11;

        __pyx_L7_bool_binop_done:;
        if (__pyx_t_5) {


          /* "Cython/Tempita/_tempita.py":634
 *         item = current[0]
 *         if not statement_re.search(item) and item not in single_statements:
 *             continue             # <<<<<<<<<<<<<<
 *         if not i:
 *             prev = ''
*/
          goto __pyx_L3_continue;

          /* "Cython/Tempita/_tempita.py":633
 *             continue
 *         item = current[0]
 *         if not statement_re.search(item) and item not in single_statements:             # <<<<<<<<<<<<<<
 *             continue
 *         if not i:
*/
        }

        /* "Cython/Tempita/_tempita.py":635
 *         if not statement_re.search(item) and item not in single_statements:
 *             continue
 *         if not i:             # <<<<<<<<<<<<<<
 *             prev = ''
 *         else:
*/
        __pyx_t_5 = (!(__pyx_v_i != 0));

        if (__pyx_t_5) {


          /* "Cython/Tempita/_tempita.py":636
 *             continue
 *         if not i:
 *             prev = ''             # <<<<<<<<<<<<<<
 *         else:
 *             prev = tokens[i - 1]
*/
          __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
          __Pyx_XDECREF_SET(__pyx_v_prev, __pyx_mstate_global->__pyx_kp_u__5);

          /* "Cython/Tempita/_tempita.py":635
 *         if not statement_re.search(item) and item not in single_statements:
 *             continue
 *         if not i:             # <<<<<<<<<<<<<<
 *             prev = ''
 *         else:
*/
          goto __pyx_L9;
        }

        /* "Cython/Tempita/_tempita.py":638
 *             prev = ''
 *         else:
 *             prev = tokens[i - 1]             # <<<<<<<<<<<<<<
 *         if i + 1 >= len(tokens):
 *             next_chunk = ''
*/
        /*else*/ {
          __pyx_t_12 = (__pyx_v_i - 1);

          __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_tokens, __pyx_t_12, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 638, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);

          __Pyx_XDECREF_SET(__pyx_v_prev, __pyx_t_4);
          __pyx_t_4 = 0;
        }
        __pyx_L9:;

        /* "Cython/Tempita/_tempita.py":639
 *         else:
 *             prev = tokens[i - 1]
 *         if i + 1 >= len(tokens):             # <<<<<<<<<<<<<<
 *             next_chunk = ''
 *         else:
*/
        __pyx_t_12 = __Pyx_PyList_GET_SIZE(__pyx_v_tokens); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(0, 639, __pyx_L1_error)
        __pyx_t_5 = ((__pyx_v_i + 1) >= __pyx_t_12);


        if (__pyx_t_5) {


          /* "Cython/Tempita/_tempita.py":640
 *             prev = tokens[i - 1]
 *         if i + 1 >= len(tokens):
 *             next_chunk = ''             # <<<<<<<<<<<<<<
 *         else:
 *             next_chunk = tokens[i + 1]
*/
          __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
          __Pyx_XDECREF_SET(__pyx_v_next_chunk, __pyx_mstate_global->__pyx_kp_u__5);

          /* "Cython/Tempita/_tempita.py":639
 *         else:
 *             prev = tokens[i - 1]
 *         if i + 1 >= len(tokens):             # <<<<<<<<<<<<<<
 *             next_chunk = ''
 *         else:
*/
          goto __pyx_L10;
        }

        /* "Cython/Tempita/_tempita.py":642
 *             next_chunk = ''
 *         else:
 *             next_chunk = tokens[i + 1]             # <<<<<<<<<<<<<<
 *         if (not isinstance(next_chunk, str)
 *                 or not isinstance(prev, str)):
*/
        /*else*/ {
          __pyx_t_12 = (__pyx_v_i + 1);

          __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_tokens, __pyx_t_12, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 642, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);

          __Pyx_XDECREF_SET(__pyx_v_next_chunk, __pyx_t_4);
          __pyx_t_4 = 0;
        }
        __pyx_L10:;

        /* "Cython/Tempita/_tempita.py":643
 *         else:
 *             next_chunk = tokens[i + 1]
 *         if (not isinstance(next_chunk, str)             # <<<<<<<<<<<<<<
 *                 or not isinstance(prev, str)):
 *             continue
*/
        __pyx_t_11 = PyUnicode_Check(__pyx_v_next_chunk); 
        __pyx_t_10 = (!__pyx_t_11);


        if (!__pyx_t_10) {

        } else {

          __pyx_t_5 = __pyx_t_10;

          goto __pyx_L12_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":644
 *             next_chunk = tokens[i + 1]
 *         if (not isinstance(next_chunk, str)
 *                 or not isinstance(prev, str)):             # <<<<<<<<<<<<<<
 *             continue
 *         prev_ok = not prev or trail_whitespace_re.search(prev)
*/
        __pyx_t_10 = PyUnicode_Check(__pyx_v_prev); 
        __pyx_t_11 = (!__pyx_t_10);



        __pyx_t_5 = __pyx_t_11;

        __pyx_L12_bool_binop_done:;

        /* "Cython/Tempita/_tempita.py":643
 *         else:
 *             next_chunk = tokens[i + 1]
 *         if (not isinstance(next_chunk, str)             # <<<<<<<<<<<<<<
 *                 or not isinstance(prev, str)):
 *             continue
*/
        if (__pyx_t_5) {


          /* "Cython/Tempita/_tempita.py":645
 *         if (not isinstance(next_chunk, str)
 *                 or not isinstance(prev, str)):
 *             continue             # <<<<<<<<<<<<<<
 *         prev_ok = not prev or trail_whitespace_re.search(prev)
 *         if i == 1 and not prev.strip():
*/
          goto __pyx_L3_continue;

          /* "Cython/Tempita/_tempita.py":643
 *         else:
 *             next_chunk = tokens[i + 1]
 *         if (not isinstance(next_chunk, str)             # <<<<<<<<<<<<<<
 *                 or not isinstance(prev, str)):
 *             continue
*/
        }

        /* "Cython/Tempita/_tempita.py":646
 *                 or not isinstance(prev, str)):
 *             continue
 *         prev_ok = not prev or trail_whitespace_re.search(prev)             # <<<<<<<<<<<<<<
 *         if i == 1 and not prev.strip():
 *             prev_ok = True
*/
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_prev); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 646, __pyx_L1_error)
        __pyx_t_11 = (!__pyx_t_5);


        if (!__pyx_t_11) {

        } else {
          __pyx_t_8 = __Pyx_PyBool_FromLong(__pyx_t_11); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 646, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __pyx_t_4 = __pyx_t_8;
          __pyx_t_8 = 0;

          goto __pyx_L14_bool_binop_done;
        }
        __pyx_t_6 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_trail_whitespace_re); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 646, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_search); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 646, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_9 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_13))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_13);
          assert(__pyx_t_6);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
          __pyx_t_9 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_prev};
          __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 646, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_4 = __pyx_t_8;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_L14_bool_binop_done:;
        __Pyx_XDECREF_SET(__pyx_v_prev_ok, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "Cython/Tempita/_tempita.py":647
 *             continue
 *         prev_ok = not prev or trail_whitespace_re.search(prev)
 *         if i == 1 and not prev.strip():             # <<<<<<<<<<<<<<
 *             prev_ok = True
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():
*/
        __pyx_t_5 = (__pyx_v_i == 1);

        if (__pyx_t_5) {

        } else {

          __pyx_t_11 = __pyx_t_5;

          goto __pyx_L17_bool_binop_done;
        }
        __pyx_t_8 = __pyx_v_prev;
        __Pyx_INCREF(__pyx_t_8);
        __pyx_t_9 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 647, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 647, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_10 = (!__pyx_t_5);



        __pyx_t_11 = __pyx_t_10;

        __pyx_L17_bool_binop_done:;
        if (__pyx_t_11) {


          /* "Cython/Tempita/_tempita.py":648
 *         prev_ok = not prev or trail_whitespace_re.search(prev)
 *         if i == 1 and not prev.strip():
 *             prev_ok = True             # <<<<<<<<<<<<<<
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():
 *             prev_ok = 'last'
*/
          __Pyx_INCREF(Py_True);
          __Pyx_DECREF_SET(__pyx_v_prev_ok, Py_True);

          /* "Cython/Tempita/_tempita.py":647
 *             continue
 *         prev_ok = not prev or trail_whitespace_re.search(prev)
 *         if i == 1 and not prev.strip():             # <<<<<<<<<<<<<<
 *             prev_ok = True
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():
*/
        }

        /* "Cython/Tempita/_tempita.py":649
 *         if i == 1 and not prev.strip():
 *             prev_ok = True
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():             # <<<<<<<<<<<<<<
 *             prev_ok = 'last'
 *         if (prev_ok
*/
        __pyx_t_10 = (__pyx_v_last_trim != Py_None);
        if (__pyx_t_10) {

        } else {

          __pyx_t_11 = __pyx_t_10;

          goto __pyx_L20_bool_binop_done;
        }
        __pyx_t_4 = __Pyx_PyLong_AddObjC(__pyx_v_last_trim, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 649, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 649, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_object_int(__pyx_t_4, __pyx_t_8, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 649, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (__pyx_t_10) {

        } else {

          __pyx_t_11 = __pyx_t_10;

          goto __pyx_L20_bool_binop_done;
        }
        __pyx_t_4 = __pyx_v_prev;
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_9 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
          __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 649, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 649, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_5 = (!__pyx_t_10);



        __pyx_t_11 = __pyx_t_5;

        __pyx_L20_bool_binop_done:;
        if (__pyx_t_11) {


          /* "Cython/Tempita/_tempita.py":650
 *             prev_ok = True
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():
 *             prev_ok = 'last'             # <<<<<<<<<<<<<<
 *         if (prev_ok
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
*/
          __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_last);
          __Pyx_DECREF_SET(__pyx_v_prev_ok, __pyx_mstate_global->__pyx_n_u_last);

          /* "Cython/Tempita/_tempita.py":649
 *         if i == 1 and not prev.strip():
 *             prev_ok = True
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():             # <<<<<<<<<<<<<<
 *             prev_ok = 'last'
 *         if (prev_ok
*/
        }

        /* "Cython/Tempita/_tempita.py":651
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():
 *             prev_ok = 'last'
 *         if (prev_ok             # <<<<<<<<<<<<<<
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
*/
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_prev_ok); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 651, __pyx_L1_error)
        if (__pyx_t_5) {

        } else {

          __pyx_t_11 = __pyx_t_5;

          goto __pyx_L24_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":652
 *             prev_ok = 'last'
 *         if (prev_ok
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)             # <<<<<<<<<<<<<<
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
 *             if prev:
*/
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_next_chunk); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 652, __pyx_L1_error)
        __pyx_t_10 = (!__pyx_t_5);


        if (!__pyx_t_10) {

        } else {

          __pyx_t_11 = __pyx_t_10;

          goto __pyx_L24_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":653
 *         if (prev_ok
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):             # <<<<<<<<<<<<<<
 *             if prev:
 *                 if ((i == 1 and not prev.strip())
*/
        __pyx_t_4 = NULL;

        /* "Cython/Tempita/_tempita.py":652
 *             prev_ok = 'last'
 *         if (prev_ok
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)             # <<<<<<<<<<<<<<
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
 *             if prev:
*/
        __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_lead_whitespace_re); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 652, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_13);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_search); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 652, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
        __pyx_t_9 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_6))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
          __pyx_t_9 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_next_chunk};
          __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 652, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 652, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        if (!__pyx_t_10) {

        } else {

          __pyx_t_11 = __pyx_t_10;

          goto __pyx_L24_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":653
 *         if (prev_ok
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):             # <<<<<<<<<<<<<<
 *             if prev:
 *                 if ((i == 1 and not prev.strip())
*/
        __pyx_t_12 = __Pyx_PyList_GET_SIZE(__pyx_v_tokens); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(0, 653, __pyx_L1_error)
        __pyx_t_10 = (__pyx_v_i == (__pyx_t_12 - 2));


        if (__pyx_t_10) {

        } else {

          __pyx_t_11 = __pyx_t_10;

          goto __pyx_L24_bool_binop_done;
        }
        __pyx_t_6 = __pyx_v_next_chunk;
        __Pyx_INCREF(__pyx_t_6);
        __pyx_t_9 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
          __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 653, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
        }
        __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 653, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __pyx_t_5 = (!__pyx_t_10);



        __pyx_t_11 = __pyx_t_5;

        __pyx_L24_bool_binop_done:;

        /* "Cython/Tempita/_tempita.py":651
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():
 *             prev_ok = 'last'
 *         if (prev_ok             # <<<<<<<<<<<<<<
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
*/
        if (__pyx_t_11) {


          /* "Cython/Tempita/_tempita.py":654
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
 *             if prev:             # <<<<<<<<<<<<<<
 *                 if ((i == 1 and not prev.strip())
 *                         or prev_ok == 'last'):
*/
          __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_v_prev); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 654, __pyx_L1_error)
          if (__pyx_t_11) {


            /* "Cython/Tempita/_tempita.py":655
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
 *             if prev:
 *                 if ((i == 1 and not prev.strip())             # <<<<<<<<<<<<<<
 *                         or prev_ok == 'last'):
 *                     tokens[i - 1] = ''
*/
            __pyx_t_5 = (__pyx_v_i == 1);

            if (!__pyx_t_5) {

              goto __pyx_L32_next_or;
            } else {

            }
            __pyx_t_6 = __pyx_v_prev;
            __Pyx_INCREF(__pyx_t_6);
            __pyx_t_9 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_6, NULL};
              __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
              if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 655, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_8);
            }
            __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 655, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
            __pyx_t_10 = (!__pyx_t_5);


            if (!__pyx_t_10) {

            } else {

              __pyx_t_11 = __pyx_t_10;

              goto __pyx_L31_bool_binop_done;
            }
            __pyx_L32_next_or:;

            /* "Cython/Tempita/_tempita.py":656
 *             if prev:
 *                 if ((i == 1 and not prev.strip())
 *                         or prev_ok == 'last'):             # <<<<<<<<<<<<<<
 *                     tokens[i - 1] = ''
 *                 else:
*/
            __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_v_prev_ok, __pyx_mstate_global->__pyx_n_u_last, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 656, __pyx_L1_error)

            __pyx_t_11 = __pyx_t_10;

            __pyx_L31_bool_binop_done:;

            /* "Cython/Tempita/_tempita.py":655
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
 *             if prev:
 *                 if ((i == 1 and not prev.strip())             # <<<<<<<<<<<<<<
 *                         or prev_ok == 'last'):
 *                     tokens[i - 1] = ''
*/
            if (__pyx_t_11) {


              /* "Cython/Tempita/_tempita.py":657
 *                 if ((i == 1 and not prev.strip())
 *                         or prev_ok == 'last'):
 *                     tokens[i - 1] = ''             # <<<<<<<<<<<<<<
 *                 else:
 *                     m = trail_whitespace_re.search(prev)
*/
              __pyx_t_12 = (__pyx_v_i - 1);

              if (unlikely((__Pyx_SetItemInt(__pyx_v_tokens, __pyx_t_12, __pyx_mstate_global->__pyx_kp_u__5, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument) < 0))) __PYX_ERR(0, 657, __pyx_L1_error)


              /* "Cython/Tempita/_tempita.py":655
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
 *             if prev:
 *                 if ((i == 1 and not prev.strip())             # <<<<<<<<<<<<<<
 *                         or prev_ok == 'last'):
 *                     tokens[i - 1] = ''
*/
              goto __pyx_L30;
            }

            /* "Cython/Tempita/_tempita.py":659
 *                     tokens[i - 1] = ''
 *                 else:
 *                     m = trail_whitespace_re.search(prev)             # <<<<<<<<<<<<<<
 *                     # +1 to leave the leading \n on:
 *                     prev = prev[:m.start() + 1]
*/
            /*else*/ {
              __pyx_t_6 = NULL;
              __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_trail_whitespace_re); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 659, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_search); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 659, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_13);
              __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
              __pyx_t_9 = 1;
              #if CYTHON_UNPACK_METHODS
              if (unlikely(PyMethod_Check(__pyx_t_13))) {
                __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_13);
                assert(__pyx_t_6);
                PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
                __Pyx_INCREF(__pyx_t_6);
                __Pyx_INCREF(__pyx__function);
                __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
                __pyx_t_9 = 0;
              }
              #endif
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_v_prev};
                __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_13, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
                __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
                if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 659, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_8);
              }
              __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_8);
              __pyx_t_8 = 0;

              /* "Cython/Tempita/_tempita.py":661
 *                     m = trail_whitespace_re.search(prev)
 *                     # +1 to leave the leading \n on:
 *                     prev = prev[:m.start() + 1]             # <<<<<<<<<<<<<<
 *                     tokens[i - 1] = prev
 *             if next_chunk:
*/
              __pyx_t_13 = __pyx_v_m;
              __Pyx_INCREF(__pyx_t_13);
              __pyx_t_9 = 0;
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_13, NULL};
                __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_start, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
                if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 661, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_8);
              }
              __pyx_t_13 = __Pyx_PyLong_AddObjC(__pyx_t_8, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 661, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_13);
              __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
              __pyx_t_8 = __Pyx_PyObject_GetSlice(__pyx_v_prev, 0, 0, NULL, &__pyx_t_13, NULL, 0, 0, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 661, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_8);
              __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
              __Pyx_DECREF_SET(__pyx_v_prev, __pyx_t_8);
              __pyx_t_8 = 0;

              /* "Cython/Tempita/_tempita.py":662
 *                     # +1 to leave the leading \n on:
 *                     prev = prev[:m.start() + 1]
 *                     tokens[i - 1] = prev             # <<<<<<<<<<<<<<
 *             if next_chunk:
 *                 last_trim = i
*/
              __pyx_t_12 = (__pyx_v_i - 1);

              if (unlikely((__Pyx_SetItemInt(__pyx_v_tokens, __pyx_t_12, __pyx_v_prev, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument) < 0))) __PYX_ERR(0, 662, __pyx_L1_error)

            }
            __pyx_L30:;

            /* "Cython/Tempita/_tempita.py":654
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
 *             if prev:             # <<<<<<<<<<<<<<
 *                 if ((i == 1 and not prev.strip())
 *                         or prev_ok == 'last'):
*/
          }

          /* "Cython/Tempita/_tempita.py":663
 *                     prev = prev[:m.start() + 1]
 *                     tokens[i - 1] = prev
 *             if next_chunk:             # <<<<<<<<<<<<<<
 *                 last_trim = i
 *                 if i == len(tokens) - 2 and not next_chunk.strip():
*/
          __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_v_next_chunk); if (unlikely((__pyx_t_11 < 0))) __PYX_ERR(0, 663, __pyx_L1_error)
          if (__pyx_t_11) {


            /* "Cython/Tempita/_tempita.py":664
 *                     tokens[i - 1] = prev
 *             if next_chunk:
 *                 last_trim = i             # <<<<<<<<<<<<<<
 *                 if i == len(tokens) - 2 and not next_chunk.strip():
 *                     tokens[i + 1] = ''
*/
            __pyx_t_8 = PyLong_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 664, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_DECREF_SET(__pyx_v_last_trim, __pyx_t_8);
            __pyx_t_8 = 0;

            /* "Cython/Tempita/_tempita.py":665
 *             if next_chunk:
 *                 last_trim = i
 *                 if i == len(tokens) - 2 and not next_chunk.strip():             # <<<<<<<<<<<<<<
 *                     tokens[i + 1] = ''
 *                 else:
*/
            __pyx_t_12 = __Pyx_PyList_GET_SIZE(__pyx_v_tokens); if (unlikely(__pyx_t_12 == ((Py_ssize_t)-1))) __PYX_ERR(0, 665, __pyx_L1_error)
            __pyx_t_10 = (__pyx_v_i == (__pyx_t_12 - 2));


            if (__pyx_t_10) {

            } else {

              __pyx_t_11 = __pyx_t_10;

              goto __pyx_L36_bool_binop_done;
            }
            __pyx_t_13 = __pyx_v_next_chunk;
            __Pyx_INCREF(__pyx_t_13);
            __pyx_t_9 = 0;
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_13, NULL};
              __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 665, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_8);
            }
            __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 665, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
            __pyx_t_5 = (!__pyx_t_10);



            __pyx_t_11 = __pyx_t_5;

            __pyx_L36_bool_binop_done:;
            if (__pyx_t_11) {


              /* "Cython/Tempita/_tempita.py":666
 *                 last_trim = i
 *                 if i == len(tokens) - 2 and not next_chunk.strip():
 *                     tokens[i + 1] = ''             # <<<<<<<<<<<<<<
 *                 else:
 *                     m = lead_whitespace_re.search(next_chunk)
*/
              __pyx_t_12 = (__pyx_v_i + 1);

              if (unlikely((__Pyx_SetItemInt(__pyx_v_tokens, __pyx_t_12, __pyx_mstate_global->__pyx_kp_u__5, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument) < 0))) __PYX_ERR(0, 666, __pyx_L1_error)


              /* "Cython/Tempita/_tempita.py":665
 *             if next_chunk:
 *                 last_trim = i
 *                 if i == len(tokens) - 2 and not next_chunk.strip():             # <<<<<<<<<<<<<<
 *                     tokens[i + 1] = ''
 *                 else:
*/
              goto __pyx_L35;
            }

            /* "Cython/Tempita/_tempita.py":668
 *                     tokens[i + 1] = ''
 *                 else:
 *                     m = lead_whitespace_re.search(next_chunk)             # <<<<<<<<<<<<<<
 *                     next_chunk = next_chunk[m.end():]
 *                     tokens[i + 1] = next_chunk
*/
            /*else*/ {
              __pyx_t_13 = NULL;
              __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_lead_whitespace_re); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 668, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_6);
              __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_search); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 668, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
              __pyx_t_9 = 1;
              #if CYTHON_UNPACK_METHODS
              if (unlikely(PyMethod_Check(__pyx_t_4))) {
                __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_4);
                assert(__pyx_t_13);
                PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
                __Pyx_INCREF(__pyx_t_13);
                __Pyx_INCREF(__pyx__function);
                __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
                __pyx_t_9 = 0;
              }
              #endif
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_v_next_chunk};
                __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
                __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
                if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 668, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_8);
              }
              __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_8);
              __pyx_t_8 = 0;

              /* "Cython/Tempita/_tempita.py":669
 *                 else:
 *                     m = lead_whitespace_re.search(next_chunk)
 *                     next_chunk = next_chunk[m.end():]             # <<<<<<<<<<<<<<
 *                     tokens[i + 1] = next_chunk
 * 
*/
              __pyx_t_4 = __pyx_v_m;
              __Pyx_INCREF(__pyx_t_4);
              __pyx_t_9 = 0;
              {
                PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
                __pyx_t_8 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_end, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
                if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 669, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_8);
              }
              __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_v_next_chunk, 0, 0, &__pyx_t_8, NULL, NULL, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 669, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
              __Pyx_DECREF_SET(__pyx_v_next_chunk, __pyx_t_4);
              __pyx_t_4 = 0;

              /* "Cython/Tempita/_tempita.py":670
 *                     m = lead_whitespace_re.search(next_chunk)
 *                     next_chunk = next_chunk[m.end():]
 *                     tokens[i + 1] = next_chunk             # <<<<<<<<<<<<<<
 * 
 * 
*/
              __pyx_t_12 = (__pyx_v_i + 1);

              if (unlikely((__Pyx_SetItemInt(__pyx_v_tokens, __pyx_t_12, __pyx_v_next_chunk, Py_ssize_t, 1, PyLong_FromSsize_t, 1, 1, 1, __Pyx_ReferenceSharing_FunctionArgument) < 0))) __PYX_ERR(0, 670, __pyx_L1_error)

            }
            __pyx_L35:;

            /* "Cython/Tempita/_tempita.py":663
 *                     prev = prev[:m.start() + 1]
 *                     tokens[i - 1] = prev
 *             if next_chunk:             # <<<<<<<<<<<<<<
 *                 last_trim = i
 *                 if i == len(tokens) - 2 and not next_chunk.strip():
*/
          }

          /* "Cython/Tempita/_tempita.py":651
 *         if last_trim is not None and last_trim + 2 == i and not prev.strip():
 *             prev_ok = 'last'
 *         if (prev_ok             # <<<<<<<<<<<<<<
 *             and (not next_chunk or lead_whitespace_re.search(next_chunk)
 *                  or (i == len(tokens) - 2 and not next_chunk.strip()))):
*/
        }

        /* "Cython/Tempita/_tempita.py":628
 *     i: cython.Py_ssize_t
 *     last_trim = None
 *     for i, current in enumerate(tokens):             # <<<<<<<<<<<<<<
 *         if isinstance(current, str):
 *             # we don't trim this
*/
        __pyx_L3_continue:;
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":614
 * 
 * 
 * def trim_lex(tokens: list):             # <<<<<<<<<<<<<<
 *     r"""
 *     Takes a lexed set of tokens, and removes whitespace when there is
*/

      /* function exit code */
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_7);
      __Pyx_XDECREF(__pyx_t_8);
      __Pyx_XDECREF(__pyx_t_13);
      __Pyx_AddTraceback("Cython.Tempita._tempita.trim_lex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;

      __Pyx_XDECREF(__pyx_v_last_trim);
      __Pyx_XDECREF(__pyx_v_current);
      __Pyx_XDECREF(__pyx_v_item);
      __Pyx_XDECREF(__pyx_v_prev);
      __Pyx_XDECREF(__pyx_v_next_chunk);
      __Pyx_XDECREF(__pyx_v_prev_ok);
      __Pyx_XDECREF(__pyx_v_m);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":673
 * 
 * 
 * def find_position(string: str, index, last_index, last_pos) -> tuple:             # <<<<<<<<<<<<<<
 *     """Given a string and index, return (line, column)"""
 *     lines = string.count('\n', last_index, index)
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_13find_position(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    PyDoc_STRVAR(__pyx_doc_6Cython_7Tempita_8_tempita_12find_position, "Given a string and index, return (line, column)");
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_13find_position = {"find_position", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_13find_position, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6Cython_7Tempita_8_tempita_12find_position};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_13find_position(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_string = 0;
      PyObject *__pyx_v_index = 0;
      PyObject *__pyx_v_last_index = 0;
      PyObject *__pyx_v_last_pos = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[4] = {0,0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("find_position (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_string_2,&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_last_index,&__pyx_mstate_global->__pyx_n_u_last_pos,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 673, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  4:
            values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 673, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 673, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 673, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 673, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "find_position", 0) < (0)) __PYX_ERR(0, 673, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("find_position", 1, 4, 4, i); __PYX_ERR(0, 673, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 4)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 673, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 673, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 673, __pyx_L3_error)
          values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 673, __pyx_L3_error)
        }
        __pyx_v_string = ((PyObject*)values[0]);
        __pyx_v_index = values[1];
        __pyx_v_last_index = values[2];
        __pyx_v_last_pos = values[3];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("find_position", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 673, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.find_position", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_string), (&PyUnicode_Type), 0, "string", 2))) __PYX_ERR(0, 673, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_12find_position(__pyx_self, __pyx_v_string, __pyx_v_index, __pyx_v_last_index, __pyx_v_last_pos);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_12find_position(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_index, PyObject *__pyx_v_last_index, PyObject *__pyx_v_last_pos) {
      PyObject *__pyx_v_lines = NULL;
      PyObject *__pyx_v_column = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      Py_ssize_t __pyx_t_1;
      Py_ssize_t __pyx_t_2;
      Py_ssize_t __pyx_t_3;
      PyObject *__pyx_t_4 = NULL;
      int __pyx_t_5;
      PyObject *__pyx_t_6 = NULL;
      PyObject *__pyx_t_7 = NULL;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("find_position", 0);

      /* "Cython/Tempita/_tempita.py":675
 * def find_position(string: str, index, last_index, last_pos) -> tuple:
 *     """Given a string and index, return (line, column)"""
 *     lines = string.count('\n', last_index, index)             # <<<<<<<<<<<<<<
 *     if lines > 0:
 *         column = index - string.rfind('\n', last_index, index)
*/
      __pyx_t_1 = (__Pyx_Py_IsNone(__pyx_v_last_index) ? (0) : (__Pyx_PyIndex_AsSsize_t(__pyx_v_last_index))); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 675, __pyx_L1_error)
      __pyx_t_2 = (__Pyx_Py_IsNone(__pyx_v_index) ? (PY_SSIZE_T_MAX) : (__Pyx_PyIndex_AsSsize_t(__pyx_v_index))); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 675, __pyx_L1_error)
      __pyx_t_3 = PyUnicode_Count(__pyx_v_string, __pyx_mstate_global->__pyx_kp_u__11, __pyx_t_1, __pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 675, __pyx_L1_error)


      __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);

      if (__Pyx_PyInt_FromNumber(&__pyx_t_4, NULL, 0) < (0)) __PYX_ERR(0, 675, __pyx_L1_error)
      __pyx_v_lines = ((PyObject*)__pyx_t_4);
      __pyx_t_4 = 0;

      /* "Cython/Tempita/_tempita.py":676
 *     """Given a string and index, return (line, column)"""
 *     lines = string.count('\n', last_index, index)
 *     if lines > 0:             # <<<<<<<<<<<<<<
 *         column = index - string.rfind('\n', last_index, index)
 *     else:
*/
      __pyx_t_5 = __Pyx_PyObject_CompareBoolGt_int_int(__pyx_v_lines, __pyx_mstate_global->__pyx_int_0, Py_GT); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 676, __pyx_L1_error)
      if (__pyx_t_5) {


        /* "Cython/Tempita/_tempita.py":677
 *     lines = string.count('\n', last_index, index)
 *     if lines > 0:
 *         column = index - string.rfind('\n', last_index, index)             # <<<<<<<<<<<<<<
 *     else:
 *         column = last_pos[1] + (index - last_index)
*/
        __pyx_t_3 = (__Pyx_Py_IsNone(__pyx_v_last_index) ? (0) : (__Pyx_PyIndex_AsSsize_t(__pyx_v_last_index))); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 677, __pyx_L1_error)
        __pyx_t_2 = (__Pyx_Py_IsNone(__pyx_v_index) ? (PY_SSIZE_T_MAX) : (__Pyx_PyIndex_AsSsize_t(__pyx_v_index))); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 677, __pyx_L1_error)
        __pyx_t_1 = PyUnicode_Find(__pyx_v_string, __pyx_mstate_global->__pyx_kp_u__11, __pyx_t_3, __pyx_t_2, -1); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-2))) __PYX_ERR(0, 677, __pyx_L1_error)


        __pyx_t_4 = PyLong_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 677, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);

        __pyx_t_6 = __Pyx_PyNumber_Subtract_object_int(__pyx_v_index, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 677, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_column = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "Cython/Tempita/_tempita.py":676
 *     """Given a string and index, return (line, column)"""
 *     lines = string.count('\n', last_index, index)
 *     if lines > 0:             # <<<<<<<<<<<<<<
 *         column = index - string.rfind('\n', last_index, index)
 *     else:
*/
        goto __pyx_L3;
      }

      /* "Cython/Tempita/_tempita.py":679
 *         column = index - string.rfind('\n', last_index, index)
 *     else:
 *         column = last_pos[1] + (index - last_index)             # <<<<<<<<<<<<<<
 *     return (last_pos[0] + lines, column)
 * 
*/
      /*else*/ {
        __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_last_pos, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 679, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_4 = __Pyx_PyNumber_Subtract_object_object(__pyx_v_index, __pyx_v_last_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 679, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_7 = __Pyx_PyNumber_Add_object_object(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 679, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_v_column = __pyx_t_7;
        __pyx_t_7 = 0;
      }
      __pyx_L3:;

      /* "Cython/Tempita/_tempita.py":680
 *     else:
 *         column = last_pos[1] + (index - last_index)
 *     return (last_pos[0] + lines, column)             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_7 = __Pyx_GetItemInt(__pyx_v_last_pos, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 680, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_4 = __Pyx_PyNumber_Add_object_int(__pyx_t_7, __pyx_v_lines); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 680, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 680, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 680, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_column);
      __Pyx_GIVEREF(__pyx_v_column);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_column) != (0)) __PYX_ERR(0, 680, __pyx_L1_error);
      __pyx_t_4 = 0;
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = ((PyObject*)__pyx_t_7);
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_7 = 0;
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":673
 * 
 * 
 * def find_position(string: str, index, last_index, last_pos) -> tuple:             # <<<<<<<<<<<<<<
 *     """Given a string and index, return (line, column)"""
 *     lines = string.count('\n', last_index, index)
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_7);
      __Pyx_AddTraceback("Cython.Tempita._tempita.find_position", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_lines);
      __Pyx_XDECREF(__pyx_v_column);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":683
 * 
 * 
 * def parse(s, name=None, line_offset=0, delimiters=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Parses a string into a kind of AST
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_15parse(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    PyDoc_STRVAR(__pyx_doc_6Cython_7Tempita_8_tempita_14parse, "\n    Parses a string into a kind of AST\n\n        >>> parse(\047{{x}}\047)\n        [(\047expr\047, (1, 3), \047x\047)]\n        >>> parse(\047foo\047)\n        [\047foo\047]\n        >>> parse(\047{{if x}}test{{endif}}\047)\n        [(\047cond\047, (1, 3), (\047if\047, (1, 3), \047x\047, [\047test\047]))]\n        >>> parse(\047series->{{for x in y}}x={{x}}{{endfor}}\047)\n        [\047series->\047, (\047for\047, (1, 11), (\047x\047,), \047y\047, [\047x=\047, (\047expr\047, (1, 27), \047x\047)])]\n        >>> parse(\047{{for x, y in z:}}{{continue}}{{endfor}}\047)\n        [(\047for\047, (1, 3), (\047x\047, \047y\047), \047z\047, [(\047continue\047, (1, 21))])]\n        >>> parse(\047{{py:x=1}}\047)\n        [(\047py\047, (1, 3), \047x=1\047)]\n        >>> parse(\047{{if x}}a{{elif y}}b{{else}}c{{endif}}\047)\n        [(\047cond\047, (1, 3), (\047if\047, (1, 3), \047x\047, [\047a\047]), (\047elif\047, (1, 12), \047y\047, [\047b\047]), (\047else\047, (1, 23), None, [\047c\047]))]\n\n    Some exceptions::\n\n        >>> parse(\047{{continue}}\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: continue outside of for loop at line 1 column 3\n        >>> parse(\047{{if x}}foo\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: No {{endif}} at line 1 column 3\n        >>> parse(\047{{else}}\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: else outside of an if block at line 1 column 3\n        >>> parse(\047{{if x}}{{for x in y}}{{endif}}{{endfor}}\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: Unexpected endif at line 1 column 25\n        >>> parse(\047{{if}}{{endif}}\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: if with no expression at line 1 column 3\n        >>> parse(\047{{for x y}}{{endfor}}\047)\n        Traceback (most recent call last):\n            ...""\n        TemplateError: Bad for (no \"in\") in \047x y\047 at line 1 column 3\n        >>> parse(\047{{py:x=1\\ny=2}}\047)\n        Traceback (most recent call last):\n            ...\n        TemplateError: Multi-line py blocks must start with a newline at line 1 column 3\n    ");
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_15parse = {"parse", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_15parse, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_6Cython_7Tempita_8_tempita_14parse};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_15parse(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_s = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_line_offset = 0;
      PyObject *__pyx_v_delimiters = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[4] = {0,0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s_2,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_line_offset,&__pyx_mstate_global->__pyx_n_u_delimiters,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 683, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  4:
            values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 683, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 683, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 683, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 683, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse", 0) < (0)) __PYX_ERR(0, 683, __pyx_L3_error)
          if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
          if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
          if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
          for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 4, i); __PYX_ERR(0, 683, __pyx_L3_error) }
          }
        } else {
          switch (__pyx_nargs) {
            case  4:
            values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 683, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 683, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 683, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 683, __pyx_L3_error)
            break;
            default: goto __pyx_L5_argtuple_error;
          }
          if (!values[1]) values[1] = __Pyx_NewRef(((PyObject *)Py_None));
          if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_int_0)));
          if (!values[3]) values[3] = __Pyx_NewRef(((PyObject *)Py_None));
        }
        __pyx_v_s = values[0];
        __pyx_v_name = values[1];
        __pyx_v_line_offset = values[2];
        __pyx_v_delimiters = values[3];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 4, __pyx_nargs); __PYX_ERR(0, 683, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_14parse(__pyx_self, __pyx_v_s, __pyx_v_name, __pyx_v_line_offset, __pyx_v_delimiters);

      /* function exit code */
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_14parse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s, PyObject *__pyx_v_name, PyObject *__pyx_v_line_offset, PyObject *__pyx_v_delimiters) {
      PyObject *__pyx_v_tokens = NULL;
      PyObject *__pyx_v_result = NULL;
      PyObject *__pyx_v_next_chunk = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      size_t __pyx_t_4;
      PyObject *__pyx_t_5 = NULL;
      int __pyx_t_6;
      PyObject *(*__pyx_t_7)(PyObject *);
      int __pyx_t_8;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse", 0);

      /* "Cython/Tempita/_tempita.py":733
 *         TemplateError: Multi-line py blocks must start with a newline at line 1 column 3
 *     """
 *     tokens = lex(s, name=name, line_offset=line_offset, delimiters=delimiters)             # <<<<<<<<<<<<<<
 *     result = []
 *     while tokens:
*/
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_lex); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 733, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
        __pyx_t_4 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_2, __pyx_v_s, __pyx_v_name, __pyx_v_line_offset, __pyx_v_delimiters};
        #if CYTHON_VECTORCALL
        __pyx_t_5 = __pyx_mstate_global->__pyx_tuple[1];
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 733, __pyx_L1_error)
        __Pyx_INCREF(__pyx_t_5);
        #else
        {
          PyObject *__pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_line_offset, __pyx_mstate_global->__pyx_n_u_delimiters};
          __pyx_t_5 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 3);
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 733, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        #endif
        __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_v_tokens = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":734
 *     """
 *     tokens = lex(s, name=name, line_offset=line_offset, delimiters=delimiters)
 *     result = []             # <<<<<<<<<<<<<<
 *     while tokens:
 *         next_chunk, tokens = parse_expr(tokens, name)
*/
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 734, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_result = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":735
 *     tokens = lex(s, name=name, line_offset=line_offset, delimiters=delimiters)
 *     result = []
 *     while tokens:             # <<<<<<<<<<<<<<
 *         next_chunk, tokens = parse_expr(tokens, name)
 *         result.append(next_chunk)
*/
      while (1) {
        __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_tokens); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 735, __pyx_L1_error)

        if (!__pyx_t_6) break;

        /* "Cython/Tempita/_tempita.py":736
 *     result = []
 *     while tokens:
 *         next_chunk, tokens = parse_expr(tokens, name)             # <<<<<<<<<<<<<<
 *         result.append(next_chunk)
 *     return result
*/
        __pyx_t_3 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_parse_expr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 736, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
          assert(__pyx_t_3);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
          __pyx_t_4 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_tokens, __pyx_v_name};
          __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
          PyObject* sequence = __pyx_t_1;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 736, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_5);
            __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_3);
          } else {
            __pyx_t_5 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 736, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_5);
            __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 736, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_3);
          }
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 736, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 736, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_7 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2);
          index = 0; __pyx_t_5 = __pyx_t_7(__pyx_t_2); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_5);
          index = 1; __pyx_t_3 = __pyx_t_7(__pyx_t_2); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_3);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_2), 2) < (0)) __PYX_ERR(0, 736, __pyx_L1_error)
          __pyx_t_7 = NULL;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          goto __pyx_L6_unpacking_done;
          __pyx_L5_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_7 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 736, __pyx_L1_error)
          __pyx_L6_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_next_chunk, __pyx_t_5);
        __pyx_t_5 = 0;
        __Pyx_DECREF_SET(__pyx_v_tokens, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":737
 *     while tokens:
 *         next_chunk, tokens = parse_expr(tokens, name)
 *         result.append(next_chunk)             # <<<<<<<<<<<<<<
 *     return result
 * 
*/
        __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_next_chunk); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 737, __pyx_L1_error)

      }

      /* "Cython/Tempita/_tempita.py":738
 *         next_chunk, tokens = parse_expr(tokens, name)
 *         result.append(next_chunk)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
*/
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __Pyx_INCREF(__pyx_v_result);
          __pyx_r = __pyx_v_result;
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":683
 * 
 * 
 * def parse(s, name=None, line_offset=0, delimiters=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Parses a string into a kind of AST
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_tokens);
      __Pyx_XDECREF(__pyx_v_result);
      __Pyx_XDECREF(__pyx_v_next_chunk);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":741
 * 
 * 
 * def parse_expr(tokens: list, name, context=()) -> tuple:             # <<<<<<<<<<<<<<
 *     if isinstance(tokens[0], str):
 *         return tokens[0], tokens[1:]
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_17parse_expr(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_17parse_expr = {"parse_expr", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_17parse_expr, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_17parse_expr(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_tokens = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_context = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_expr (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tokens,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_context,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 741, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 741, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 741, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 741, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_expr", 0) < (0)) __PYX_ERR(0, 741, __pyx_L3_error)
          if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_empty_tuple)));
          for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_expr", 0, 2, 3, i); __PYX_ERR(0, 741, __pyx_L3_error) }
          }
        } else {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 741, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 741, __pyx_L3_error)
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 741, __pyx_L3_error)
            break;
            default: goto __pyx_L5_argtuple_error;
          }
          if (!values[2]) values[2] = __Pyx_NewRef(((PyObject *)((PyObject*)__pyx_mstate_global->__pyx_empty_tuple)));
        }
        __pyx_v_tokens = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_context = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_expr", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 741, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_expr", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 741, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_16parse_expr(__pyx_self, __pyx_v_tokens, __pyx_v_name, __pyx_v_context);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_16parse_expr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context) {
      PyObject *__pyx_v_expr = 0;
      PyObject *__pyx_v_pos = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      int __pyx_t_2;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *__pyx_t_5 = NULL;
      PyObject *(*__pyx_t_6)(PyObject *);
      size_t __pyx_t_7;
      int __pyx_t_8;
      PyObject *__pyx_t_9 = NULL;
      PyObject *__pyx_t_10 = NULL;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_expr", 0);

      /* "Cython/Tempita/_tempita.py":742
 * 
 * def parse_expr(tokens: list, name, context=()) -> tuple:
 *     if isinstance(tokens[0], str):             # <<<<<<<<<<<<<<
 *         return tokens[0], tokens[1:]
 *     expr: str
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 742, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = PyUnicode_Check(__pyx_t_1); 
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_2) {


        /* "Cython/Tempita/_tempita.py":743
 * def parse_expr(tokens: list, name, context=()) -> tuple:
 *     if isinstance(tokens[0], str):
 *         return tokens[0], tokens[1:]             # <<<<<<<<<<<<<<
 *     expr: str
 *     expr, pos = tokens[0]
*/
        __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 743, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_3 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 743, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 743, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_1);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 743, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3) != (0)) __PYX_ERR(0, 743, __pyx_L1_error);
        __pyx_t_1 = 0;
        __pyx_t_3 = 0;
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_4);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_4 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":742
 * 
 * def parse_expr(tokens: list, name, context=()) -> tuple:
 *     if isinstance(tokens[0], str):             # <<<<<<<<<<<<<<
 *         return tokens[0], tokens[1:]
 *     expr: str
*/
      }

      /* "Cython/Tempita/_tempita.py":745
 *         return tokens[0], tokens[1:]
 *     expr: str
 *     expr, pos = tokens[0]             # <<<<<<<<<<<<<<
 *     expr = expr.strip()
 *     if expr.startswith('py:'):
*/
      __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 745, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
        PyObject* sequence = __pyx_t_4;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 745, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_1);
        } else {
          __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 745, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 745, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_1);
        }
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 745, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 745, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 745, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
        index = 0; __pyx_t_3 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L4_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        index = 1; __pyx_t_1 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_1)) goto __pyx_L4_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_1);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 2) < (0)) __PYX_ERR(0, 745, __pyx_L1_error)
        __pyx_t_6 = NULL;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        goto __pyx_L5_unpacking_done;
        __pyx_L4_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_6 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 745, __pyx_L1_error)
        __pyx_L5_unpacking_done:;
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 745, __pyx_L1_error)
      __pyx_v_expr = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_v_pos = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":746
 *     expr: str
 *     expr, pos = tokens[0]
 *     expr = expr.strip()             # <<<<<<<<<<<<<<
 *     if expr.startswith('py:'):
 *         expr = expr[3:].lstrip(' \t')
*/
      __pyx_t_4 = __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyUnicode_Type__strip, __pyx_v_expr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 746, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (!(likely(PyUnicode_CheckExact(__pyx_t_4)) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_4))) __PYX_ERR(0, 746, __pyx_L1_error)
      __Pyx_DECREF_SET(__pyx_v_expr, ((PyObject*)__pyx_t_4));
      __pyx_t_4 = 0;

      /* "Cython/Tempita/_tempita.py":747
 *     expr, pos = tokens[0]
 *     expr = expr.strip()
 *     if expr.startswith('py:'):             # <<<<<<<<<<<<<<
 *         expr = expr[3:].lstrip(' \t')
 *         if expr.startswith('\n') or expr.startswith('\r'):
*/
      __pyx_t_2 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u_py_2, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 747, __pyx_L1_error)
      if (__pyx_t_2) {


        /* "Cython/Tempita/_tempita.py":748
 *     expr = expr.strip()
 *     if expr.startswith('py:'):
 *         expr = expr[3:].lstrip(' \t')             # <<<<<<<<<<<<<<
 *         if expr.startswith('\n') or expr.startswith('\r'):
 *             expr = expr.lstrip('\r\n')
*/
        __pyx_t_3 = __Pyx_PyUnicode_Substring(__pyx_v_expr, 3, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 748, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_1 = __pyx_t_3;
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_7 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u__12};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lstrip, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 748, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        if (!(likely(PyUnicode_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_4))) __PYX_ERR(0, 748, __pyx_L1_error)
        __Pyx_DECREF_SET(__pyx_v_expr, ((PyObject*)__pyx_t_4));
        __pyx_t_4 = 0;

        /* "Cython/Tempita/_tempita.py":749
 *     if expr.startswith('py:'):
 *         expr = expr[3:].lstrip(' \t')
 *         if expr.startswith('\n') or expr.startswith('\r'):             # <<<<<<<<<<<<<<
 *             expr = expr.lstrip('\r\n')
 *             if '\r' in expr:
*/
        __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u__11, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 749, __pyx_L1_error)
        if (!__pyx_t_8) {

        } else {

          __pyx_t_2 = __pyx_t_8;

          goto __pyx_L8_bool_binop_done;
        }
        __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u__13, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 749, __pyx_L1_error)

        __pyx_t_2 = __pyx_t_8;

        __pyx_L8_bool_binop_done:;
        if (__pyx_t_2) {


          /* "Cython/Tempita/_tempita.py":750
 *         expr = expr[3:].lstrip(' \t')
 *         if expr.startswith('\n') or expr.startswith('\r'):
 *             expr = expr.lstrip('\r\n')             # <<<<<<<<<<<<<<
 *             if '\r' in expr:
 *                 expr = expr.replace('\r\n', '\n')
*/
          __pyx_t_4 = __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyUnicode_Type__lstrip, __pyx_v_expr, __pyx_mstate_global->__pyx_kp_u__14); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 750, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          if (!(likely(PyUnicode_CheckExact(__pyx_t_4)) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_4))) __PYX_ERR(0, 750, __pyx_L1_error)
          __Pyx_DECREF_SET(__pyx_v_expr, ((PyObject*)__pyx_t_4));
          __pyx_t_4 = 0;

          /* "Cython/Tempita/_tempita.py":751
 *         if expr.startswith('\n') or expr.startswith('\r'):
 *             expr = expr.lstrip('\r\n')
 *             if '\r' in expr:             # <<<<<<<<<<<<<<
 *                 expr = expr.replace('\r\n', '\n')
 *                 expr = expr.replace('\r', '')
*/
          __pyx_t_2 = (__Pyx_UnicodeContainsUCS4(13, __pyx_v_expr, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 751, __pyx_L1_error)
          if (__pyx_t_2) {


            /* "Cython/Tempita/_tempita.py":752
 *             expr = expr.lstrip('\r\n')
 *             if '\r' in expr:
 *                 expr = expr.replace('\r\n', '\n')             # <<<<<<<<<<<<<<
 *                 expr = expr.replace('\r', '')
 *             expr += '\n'
*/
            __pyx_t_4 = PyUnicode_Replace(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u__14, __pyx_mstate_global->__pyx_kp_u__11, -1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 752, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_DECREF_SET(__pyx_v_expr, ((PyObject*)__pyx_t_4));
            __pyx_t_4 = 0;

            /* "Cython/Tempita/_tempita.py":753
 *             if '\r' in expr:
 *                 expr = expr.replace('\r\n', '\n')
 *                 expr = expr.replace('\r', '')             # <<<<<<<<<<<<<<
 *             expr += '\n'
 *         else:
*/
            __pyx_t_4 = PyUnicode_Replace(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u__13, __pyx_mstate_global->__pyx_kp_u__5, -1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 753, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_DECREF_SET(__pyx_v_expr, ((PyObject*)__pyx_t_4));
            __pyx_t_4 = 0;

            /* "Cython/Tempita/_tempita.py":751
 *         if expr.startswith('\n') or expr.startswith('\r'):
 *             expr = expr.lstrip('\r\n')
 *             if '\r' in expr:             # <<<<<<<<<<<<<<
 *                 expr = expr.replace('\r\n', '\n')
 *                 expr = expr.replace('\r', '')
*/
          }

          /* "Cython/Tempita/_tempita.py":754
 *                 expr = expr.replace('\r\n', '\n')
 *                 expr = expr.replace('\r', '')
 *             expr += '\n'             # <<<<<<<<<<<<<<
 *         else:
 *             if '\n' in expr:
*/
          __pyx_t_4 = __Pyx_PyUnicode_Concat__Pyx_ReferenceSharing_OwnStrongReferenceInPlace(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u__11); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 754, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF_SET(__pyx_v_expr, ((PyObject*)__pyx_t_4));
          __pyx_t_4 = 0;

          /* "Cython/Tempita/_tempita.py":749
 *     if expr.startswith('py:'):
 *         expr = expr[3:].lstrip(' \t')
 *         if expr.startswith('\n') or expr.startswith('\r'):             # <<<<<<<<<<<<<<
 *             expr = expr.lstrip('\r\n')
 *             if '\r' in expr:
*/
          goto __pyx_L7;
        }

        /* "Cython/Tempita/_tempita.py":756
 *             expr += '\n'
 *         else:
 *             if '\n' in expr:             # <<<<<<<<<<<<<<
 *                 raise TemplateError(
 *                     'Multi-line py blocks must start with a newline',
*/
        /*else*/ {
          __pyx_t_2 = (__Pyx_UnicodeContainsUCS4(10, __pyx_v_expr, Py_EQ)); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 756, __pyx_L1_error)
          if (unlikely(__pyx_t_2)) {


            /* "Cython/Tempita/_tempita.py":757
 *         else:
 *             if '\n' in expr:
 *                 raise TemplateError(             # <<<<<<<<<<<<<<
 *                     'Multi-line py blocks must start with a newline',
 *                     position=pos, name=name)
*/
            __pyx_t_3 = NULL;
            __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 757, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);

            /* "Cython/Tempita/_tempita.py":759
 *                 raise TemplateError(
 *                     'Multi-line py blocks must start with a newline',
 *                     position=pos, name=name)             # <<<<<<<<<<<<<<
 *         return ('py', pos, expr), tokens[1:]
 *     elif expr in ('continue', 'break'):
*/
            __pyx_t_7 = 1;
            #if CYTHON_UNPACK_METHODS
            if (unlikely(PyMethod_Check(__pyx_t_1))) {
              __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
              assert(__pyx_t_3);
              PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
              __Pyx_INCREF(__pyx_t_3);
              __Pyx_INCREF(__pyx__function);
              __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
              __pyx_t_7 = 0;
            }
            #endif
            {
              PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_Multi_line_py_blocks_must_start, __pyx_v_pos, __pyx_v_name};
              #if CYTHON_VECTORCALL
              __pyx_t_5 = __pyx_mstate_global->__pyx_tuple[5];
              if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 757, __pyx_L1_error)
              __Pyx_INCREF(__pyx_t_5);
              #else
              {
                PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
                __pyx_t_5 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
                if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 757, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_5);
              }
              #endif
              __pyx_t_4 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
              __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
              __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
              __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 757, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
            }
            __Pyx_Raise(__pyx_t_4, 0, 0, 0);
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __PYX_ERR(0, 757, __pyx_L1_error)

            /* "Cython/Tempita/_tempita.py":756
 *             expr += '\n'
 *         else:
 *             if '\n' in expr:             # <<<<<<<<<<<<<<
 *                 raise TemplateError(
 *                     'Multi-line py blocks must start with a newline',
*/
          }
        }
        __pyx_L7:;

        /* "Cython/Tempita/_tempita.py":760
 *                     'Multi-line py blocks must start with a newline',
 *                     position=pos, name=name)
 *         return ('py', pos, expr), tokens[1:]             # <<<<<<<<<<<<<<
 *     elif expr in ('continue', 'break'):
 *         if 'for' not in context:
*/
        __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 760, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_py);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_py);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_mstate_global->__pyx_n_u_py) != (0)) __PYX_ERR(0, 760, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_pos);
        __Pyx_GIVEREF(__pyx_v_pos);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 760, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_expr);
        __Pyx_GIVEREF(__pyx_v_expr);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_expr) != (0)) __PYX_ERR(0, 760, __pyx_L1_error);
        __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 760, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 760, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_GIVEREF(__pyx_t_4);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 760, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_1);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 760, __pyx_L1_error);
        __pyx_t_4 = 0;
        __pyx_t_1 = 0;
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_5);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_5 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":747
 *     expr, pos = tokens[0]
 *     expr = expr.strip()
 *     if expr.startswith('py:'):             # <<<<<<<<<<<<<<
 *         expr = expr[3:].lstrip(' \t')
 *         if expr.startswith('\n') or expr.startswith('\r'):
*/
      }

      /* "Cython/Tempita/_tempita.py":761
 *                     position=pos, name=name)
 *         return ('py', pos, expr), tokens[1:]
 *     elif expr in ('continue', 'break'):             # <<<<<<<<<<<<<<
 *         if 'for' not in context:
 *             raise TemplateError(
*/
      __Pyx_INCREF(__pyx_v_expr);
      __pyx_t_9 = __pyx_v_expr;
      __pyx_t_8 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_continue, Py_EQ); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 761, __pyx_L1_error)
      if (!__pyx_t_8) {

      } else {

        __pyx_t_2 = __pyx_t_8;

        goto __pyx_L12_bool_binop_done;
      }
      __pyx_t_8 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_break, Py_EQ); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 761, __pyx_L1_error)

      __pyx_t_2 = __pyx_t_8;

      __pyx_L12_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_8 = __pyx_t_2;


      if (__pyx_t_8) {


        /* "Cython/Tempita/_tempita.py":762
 *         return ('py', pos, expr), tokens[1:]
 *     elif expr in ('continue', 'break'):
 *         if 'for' not in context:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'continue outside of for loop',
*/
        __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_n_u_for, __pyx_v_context, Py_NE)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 762, __pyx_L1_error)
        if (unlikely(__pyx_t_8)) {


          /* "Cython/Tempita/_tempita.py":763
 *     elif expr in ('continue', 'break'):
 *         if 'for' not in context:
 *             raise TemplateError(             # <<<<<<<<<<<<<<
 *                 'continue outside of for loop',
 *                 position=pos, name=name)
*/
          __pyx_t_1 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 763, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);

          /* "Cython/Tempita/_tempita.py":765
 *             raise TemplateError(
 *                 'continue outside of for loop',
 *                 position=pos, name=name)             # <<<<<<<<<<<<<<
 *         return (expr, pos), tokens[1:]
 *     elif expr.startswith('if '):
*/
          __pyx_t_7 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_4))) {
            __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_4);
            assert(__pyx_t_1);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
            __pyx_t_7 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_continue_outside_of_for_loop, __pyx_v_pos, __pyx_v_name};
            #if CYTHON_VECTORCALL
            __pyx_t_3 = __pyx_mstate_global->__pyx_tuple[5];
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 763, __pyx_L1_error)
            __Pyx_INCREF(__pyx_t_3);
            #else
            {
              PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
              __pyx_t_3 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
              if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 763, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
            }
            #endif
            __pyx_t_5 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 763, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __Pyx_Raise(__pyx_t_5, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __PYX_ERR(0, 763, __pyx_L1_error)

          /* "Cython/Tempita/_tempita.py":762
 *         return ('py', pos, expr), tokens[1:]
 *     elif expr in ('continue', 'break'):
 *         if 'for' not in context:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'continue outside of for loop',
*/
        }

        /* "Cython/Tempita/_tempita.py":766
 *                 'continue outside of for loop',
 *                 position=pos, name=name)
 *         return (expr, pos), tokens[1:]             # <<<<<<<<<<<<<<
 *     elif expr.startswith('if '):
 *         return parse_cond(tokens, name, context)
*/
        __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 766, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_expr);
        __Pyx_GIVEREF(__pyx_v_expr);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_expr) != (0)) __PYX_ERR(0, 766, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_pos);
        __Pyx_GIVEREF(__pyx_v_pos);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 766, __pyx_L1_error);
        __pyx_t_4 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 766, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 766, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5) != (0)) __PYX_ERR(0, 766, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_4);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4) != (0)) __PYX_ERR(0, 766, __pyx_L1_error);
        __pyx_t_5 = 0;
        __pyx_t_4 = 0;
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_3);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_3 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":761
 *                     position=pos, name=name)
 *         return ('py', pos, expr), tokens[1:]
 *     elif expr in ('continue', 'break'):             # <<<<<<<<<<<<<<
 *         if 'for' not in context:
 *             raise TemplateError(
*/
      }

      /* "Cython/Tempita/_tempita.py":767
 *                 position=pos, name=name)
 *         return (expr, pos), tokens[1:]
 *     elif expr.startswith('if '):             # <<<<<<<<<<<<<<
 *         return parse_cond(tokens, name, context)
 *     elif (expr.startswith('elif ')
*/
      __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u_if, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 767, __pyx_L1_error)
      if (__pyx_t_8) {


        /* "Cython/Tempita/_tempita.py":768
 *         return (expr, pos), tokens[1:]
 *     elif expr.startswith('if '):
 *         return parse_cond(tokens, name, context)             # <<<<<<<<<<<<<<
 *     elif (expr.startswith('elif ')
 *           or expr == 'else'):
*/
        __pyx_t_4 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_parse_cond); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 768, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 768, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_3))) __PYX_ERR(0, 768, __pyx_L1_error)
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_3);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_3 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":767
 *                 position=pos, name=name)
 *         return (expr, pos), tokens[1:]
 *     elif expr.startswith('if '):             # <<<<<<<<<<<<<<
 *         return parse_cond(tokens, name, context)
 *     elif (expr.startswith('elif ')
*/
      }

      /* "Cython/Tempita/_tempita.py":769
 *     elif expr.startswith('if '):
 *         return parse_cond(tokens, name, context)
 *     elif (expr.startswith('elif ')             # <<<<<<<<<<<<<<
 *           or expr == 'else'):
 *         raise TemplateError(
*/
      __pyx_t_2 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u_elif, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 769, __pyx_L1_error)
      if (!__pyx_t_2) {

      } else {

        __pyx_t_8 = __pyx_t_2;

        goto __pyx_L15_bool_binop_done;
      }

      /* "Cython/Tempita/_tempita.py":770
 *         return parse_cond(tokens, name, context)
 *     elif (expr.startswith('elif ')
 *           or expr == 'else'):             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             '%s outside of an if block' % expr.split()[0],
*/
      __pyx_t_2 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_v_expr, __pyx_mstate_global->__pyx_n_u_else, Py_EQ); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 770, __pyx_L1_error)

      __pyx_t_8 = __pyx_t_2;

      __pyx_L15_bool_binop_done:;

      /* "Cython/Tempita/_tempita.py":769
 *     elif expr.startswith('if '):
 *         return parse_cond(tokens, name, context)
 *     elif (expr.startswith('elif ')             # <<<<<<<<<<<<<<
 *           or expr == 'else'):
 *         raise TemplateError(
*/
      if (unlikely(__pyx_t_8)) {


        /* "Cython/Tempita/_tempita.py":771
 *     elif (expr.startswith('elif ')
 *           or expr == 'else'):
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             '%s outside of an if block' % expr.split()[0],
 *             position=pos, name=name)
*/
        __pyx_t_5 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 771, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);

        /* "Cython/Tempita/_tempita.py":772
 *           or expr == 'else'):
 *         raise TemplateError(
 *             '%s outside of an if block' % expr.split()[0],             # <<<<<<<<<<<<<<
 *             position=pos, name=name)
 *     elif expr in ('if', 'elif', 'for'):
*/
        __pyx_t_1 = PyUnicode_Split(__pyx_v_expr, ((PyObject *)NULL), -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 772, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (!(likely(PyList_CheckExact(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 772, __pyx_L1_error)
        __pyx_t_10 = __Pyx_GetItemInt_List(__pyx_t_1, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 772, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (!(likely(PyUnicode_CheckExact(__pyx_t_10))||((__pyx_t_10) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_10))) __PYX_ERR(0, 772, __pyx_L1_error)
        __pyx_t_1 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_s_outside_of_an_if_block, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 772, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

        /* "Cython/Tempita/_tempita.py":773
 *         raise TemplateError(
 *             '%s outside of an if block' % expr.split()[0],
 *             position=pos, name=name)             # <<<<<<<<<<<<<<
 *     elif expr in ('if', 'elif', 'for'):
 *         raise TemplateError(
*/
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          assert(__pyx_t_5);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_5, __pyx_t_1, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_10 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 771, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_10);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_10 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 771, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_10);
          }
          #endif
          __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_10);
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 771, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 771, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":769
 *     elif expr.startswith('if '):
 *         return parse_cond(tokens, name, context)
 *     elif (expr.startswith('elif ')             # <<<<<<<<<<<<<<
 *           or expr == 'else'):
 *         raise TemplateError(
*/
      }

      /* "Cython/Tempita/_tempita.py":774
 *             '%s outside of an if block' % expr.split()[0],
 *             position=pos, name=name)
 *     elif expr in ('if', 'elif', 'for'):             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             '%s with no expression' % expr,
*/
      __Pyx_INCREF(__pyx_v_expr);
      __pyx_t_9 = __pyx_v_expr;
      __pyx_t_2 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_if_2, Py_EQ); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 774, __pyx_L1_error)
      if (!__pyx_t_2) {

      } else {

        __pyx_t_8 = __pyx_t_2;

        goto __pyx_L17_bool_binop_done;
      }
      __pyx_t_2 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_elif_2, Py_EQ); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 774, __pyx_L1_error)
      if (!__pyx_t_2) {

      } else {

        __pyx_t_8 = __pyx_t_2;

        goto __pyx_L17_bool_binop_done;
      }
      __pyx_t_2 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_for, Py_EQ); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 774, __pyx_L1_error)

      __pyx_t_8 = __pyx_t_2;

      __pyx_L17_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_2 = __pyx_t_8;


      if (unlikely(__pyx_t_2)) {


        /* "Cython/Tempita/_tempita.py":775
 *             position=pos, name=name)
 *     elif expr in ('if', 'elif', 'for'):
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             '%s with no expression' % expr,
 *             position=pos, name=name)
*/
        __pyx_t_4 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 775, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_10);

        /* "Cython/Tempita/_tempita.py":776
 *     elif expr in ('if', 'elif', 'for'):
 *         raise TemplateError(
 *             '%s with no expression' % expr,             # <<<<<<<<<<<<<<
 *             position=pos, name=name)
 *     elif expr in ('endif', 'endfor', 'enddef'):
*/
        __pyx_t_1 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_s_with_no_expression, __pyx_v_expr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 776, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);

        /* "Cython/Tempita/_tempita.py":777
 *         raise TemplateError(
 *             '%s with no expression' % expr,
 *             position=pos, name=name)             # <<<<<<<<<<<<<<
 *     elif expr in ('endif', 'endfor', 'enddef'):
 *         raise TemplateError(
*/
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_10))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_10);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_t_1, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_5 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 775, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_5);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_5 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 775, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          #endif
          __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 775, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 775, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":774
 *             '%s outside of an if block' % expr.split()[0],
 *             position=pos, name=name)
 *     elif expr in ('if', 'elif', 'for'):             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             '%s with no expression' % expr,
*/
      }

      /* "Cython/Tempita/_tempita.py":778
 *             '%s with no expression' % expr,
 *             position=pos, name=name)
 *     elif expr in ('endif', 'endfor', 'enddef'):             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             'Unexpected %s' % expr,
*/
      __Pyx_INCREF(__pyx_v_expr);
      __pyx_t_9 = __pyx_v_expr;
      __pyx_t_8 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_endif, Py_EQ); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 778, __pyx_L1_error)
      if (!__pyx_t_8) {

      } else {

        __pyx_t_2 = __pyx_t_8;

        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_8 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_endfor, Py_EQ); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 778, __pyx_L1_error)
      if (!__pyx_t_8) {

      } else {

        __pyx_t_2 = __pyx_t_8;

        goto __pyx_L20_bool_binop_done;
      }
      __pyx_t_8 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_enddef, Py_EQ); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 778, __pyx_L1_error)

      __pyx_t_2 = __pyx_t_8;

      __pyx_L20_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_8 = __pyx_t_2;


      if (unlikely(__pyx_t_8)) {


        /* "Cython/Tempita/_tempita.py":779
 *             position=pos, name=name)
 *     elif expr in ('endif', 'endfor', 'enddef'):
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             'Unexpected %s' % expr,
 *             position=pos, name=name)
*/
        __pyx_t_10 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 779, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);

        /* "Cython/Tempita/_tempita.py":780
 *     elif expr in ('endif', 'endfor', 'enddef'):
 *         raise TemplateError(
 *             'Unexpected %s' % expr,             # <<<<<<<<<<<<<<
 *             position=pos, name=name)
 *     elif expr.startswith('for '):
*/
        __pyx_t_1 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Unexpected_s, __pyx_v_expr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 780, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);

        /* "Cython/Tempita/_tempita.py":781
 *         raise TemplateError(
 *             'Unexpected %s' % expr,
 *             position=pos, name=name)             # <<<<<<<<<<<<<<
 *     elif expr.startswith('for '):
 *         return parse_for(tokens, name, context)
*/
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_5);
          assert(__pyx_t_10);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_10, __pyx_t_1, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_4 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 779, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_4);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_4 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 779, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          #endif
          __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
          __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 779, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 779, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":778
 *             '%s with no expression' % expr,
 *             position=pos, name=name)
 *     elif expr in ('endif', 'endfor', 'enddef'):             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             'Unexpected %s' % expr,
*/
      }

      /* "Cython/Tempita/_tempita.py":782
 *             'Unexpected %s' % expr,
 *             position=pos, name=name)
 *     elif expr.startswith('for '):             # <<<<<<<<<<<<<<
 *         return parse_for(tokens, name, context)
 *     elif expr.startswith('default '):
*/
      __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u_for_2, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 782, __pyx_L1_error)
      if (__pyx_t_8) {


        /* "Cython/Tempita/_tempita.py":783
 *             position=pos, name=name)
 *     elif expr.startswith('for '):
 *         return parse_for(tokens, name, context)             # <<<<<<<<<<<<<<
 *     elif expr.startswith('default '):
 *         return parse_default(tokens, name, context)
*/
        __pyx_t_5 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_parse_for); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 783, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          assert(__pyx_t_5);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_5, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 783, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_3))) __PYX_ERR(0, 783, __pyx_L1_error)
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_3);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_3 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":782
 *             'Unexpected %s' % expr,
 *             position=pos, name=name)
 *     elif expr.startswith('for '):             # <<<<<<<<<<<<<<
 *         return parse_for(tokens, name, context)
 *     elif expr.startswith('default '):
*/
      }

      /* "Cython/Tempita/_tempita.py":784
 *     elif expr.startswith('for '):
 *         return parse_for(tokens, name, context)
 *     elif expr.startswith('default '):             # <<<<<<<<<<<<<<
 *         return parse_default(tokens, name, context)
 *     elif expr.startswith('inherit '):
*/
      __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u_default_2, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 784, __pyx_L1_error)
      if (__pyx_t_8) {


        /* "Cython/Tempita/_tempita.py":785
 *         return parse_for(tokens, name, context)
 *     elif expr.startswith('default '):
 *         return parse_default(tokens, name, context)             # <<<<<<<<<<<<<<
 *     elif expr.startswith('inherit '):
 *         return parse_inherit(tokens, name, context)
*/
        __pyx_t_4 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_parse_default); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 785, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 785, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_3))) __PYX_ERR(0, 785, __pyx_L1_error)
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_3);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_3 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":784
 *     elif expr.startswith('for '):
 *         return parse_for(tokens, name, context)
 *     elif expr.startswith('default '):             # <<<<<<<<<<<<<<
 *         return parse_default(tokens, name, context)
 *     elif expr.startswith('inherit '):
*/
      }

      /* "Cython/Tempita/_tempita.py":786
 *     elif expr.startswith('default '):
 *         return parse_default(tokens, name, context)
 *     elif expr.startswith('inherit '):             # <<<<<<<<<<<<<<
 *         return parse_inherit(tokens, name, context)
 *     elif expr.startswith('def '):
*/
      __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u_inherit_3, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 786, __pyx_L1_error)
      if (__pyx_t_8) {


        /* "Cython/Tempita/_tempita.py":787
 *         return parse_default(tokens, name, context)
 *     elif expr.startswith('inherit '):
 *         return parse_inherit(tokens, name, context)             # <<<<<<<<<<<<<<
 *     elif expr.startswith('def '):
 *         return parse_def(tokens, name, context)
*/
        __pyx_t_5 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_parse_inherit); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 787, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          assert(__pyx_t_5);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_5, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 787, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_3))) __PYX_ERR(0, 787, __pyx_L1_error)
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_3);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_3 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":786
 *     elif expr.startswith('default '):
 *         return parse_default(tokens, name, context)
 *     elif expr.startswith('inherit '):             # <<<<<<<<<<<<<<
 *         return parse_inherit(tokens, name, context)
 *     elif expr.startswith('def '):
*/
      }

      /* "Cython/Tempita/_tempita.py":788
 *     elif expr.startswith('inherit '):
 *         return parse_inherit(tokens, name, context)
 *     elif expr.startswith('def '):             # <<<<<<<<<<<<<<
 *         return parse_def(tokens, name, context)
 *     elif expr.startswith('#'):
*/
      __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u_def_2, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 788, __pyx_L1_error)
      if (__pyx_t_8) {


        /* "Cython/Tempita/_tempita.py":789
 *         return parse_inherit(tokens, name, context)
 *     elif expr.startswith('def '):
 *         return parse_def(tokens, name, context)             # <<<<<<<<<<<<<<
 *     elif expr.startswith('#'):
 *         return ('comment', pos, tokens[0][0]), tokens[1:]
*/
        __pyx_t_4 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_parse_def); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 789, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 789, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_3))) __PYX_ERR(0, 789, __pyx_L1_error)
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_3);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_3 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":788
 *     elif expr.startswith('inherit '):
 *         return parse_inherit(tokens, name, context)
 *     elif expr.startswith('def '):             # <<<<<<<<<<<<<<
 *         return parse_def(tokens, name, context)
 *     elif expr.startswith('#'):
*/
      }

      /* "Cython/Tempita/_tempita.py":790
 *     elif expr.startswith('def '):
 *         return parse_def(tokens, name, context)
 *     elif expr.startswith('#'):             # <<<<<<<<<<<<<<
 *         return ('comment', pos, tokens[0][0]), tokens[1:]
 *     return ('expr', pos, tokens[0][0]), tokens[1:]
*/
      __pyx_t_8 = __Pyx_PyUnicode_Tailmatch(__pyx_v_expr, __pyx_mstate_global->__pyx_kp_u__15, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 790, __pyx_L1_error)
      if (__pyx_t_8) {


        /* "Cython/Tempita/_tempita.py":791
 *         return parse_def(tokens, name, context)
 *     elif expr.startswith('#'):
 *         return ('comment', pos, tokens[0][0]), tokens[1:]             # <<<<<<<<<<<<<<
 *     return ('expr', pos, tokens[0][0]), tokens[1:]
 * 
*/
        __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 791, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 791, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 791, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_comment);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_comment);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_mstate_global->__pyx_n_u_comment) != (0)) __PYX_ERR(0, 791, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_pos);
        __Pyx_GIVEREF(__pyx_v_pos);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 791, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_5) != (0)) __PYX_ERR(0, 791, __pyx_L1_error);
        __pyx_t_5 = 0;
        __pyx_t_5 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 791, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 791, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 791, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_5);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 791, __pyx_L1_error);
        __pyx_t_3 = 0;
        __pyx_t_5 = 0;
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_4);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_4 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":790
 *     elif expr.startswith('def '):
 *         return parse_def(tokens, name, context)
 *     elif expr.startswith('#'):             # <<<<<<<<<<<<<<
 *         return ('comment', pos, tokens[0][0]), tokens[1:]
 *     return ('expr', pos, tokens[0][0]), tokens[1:]
*/
      }

      /* "Cython/Tempita/_tempita.py":792
 *     elif expr.startswith('#'):
 *         return ('comment', pos, tokens[0][0]), tokens[1:]
 *     return ('expr', pos, tokens[0][0]), tokens[1:]             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_4, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_expr);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_expr);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_mstate_global->__pyx_n_u_expr) != (0)) __PYX_ERR(0, 792, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_pos);
      __Pyx_GIVEREF(__pyx_v_pos);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 792, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_5) != (0)) __PYX_ERR(0, 792, __pyx_L1_error);
      __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 792, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_4);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4) != (0)) __PYX_ERR(0, 792, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_5);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5) != (0)) __PYX_ERR(0, 792, __pyx_L1_error);
      __pyx_t_4 = 0;
      __pyx_t_5 = 0;
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = ((PyObject*)__pyx_t_3);
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_3 = 0;
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":741
 * 
 * 
 * def parse_expr(tokens: list, name, context=()) -> tuple:             # <<<<<<<<<<<<<<
 *     if isinstance(tokens[0], str):
 *         return tokens[0], tokens[1:]
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_9);
      __Pyx_XDECREF(__pyx_t_10);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_expr", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_expr);
      __Pyx_XDECREF(__pyx_v_pos);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":795
 * 
 * 
 * def parse_cond(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     start = tokens[0][1]
 *     pieces = []
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_19parse_cond(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_19parse_cond = {"parse_cond", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_19parse_cond, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_19parse_cond(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_tokens = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_context = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_cond (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tokens,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_context,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 795, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 795, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 795, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 795, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_cond", 0) < (0)) __PYX_ERR(0, 795, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_cond", 1, 3, 3, i); __PYX_ERR(0, 795, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 795, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 795, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 795, __pyx_L3_error)
        }
        __pyx_v_tokens = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_context = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_cond", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 795, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_cond", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 795, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_18parse_cond(__pyx_self, __pyx_v_tokens, __pyx_v_name, __pyx_v_context);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_18parse_cond(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context) {
      PyObject *__pyx_v_start = NULL;
      PyObject *__pyx_v_pieces = NULL;
      PyObject *__pyx_v_next_chunk = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      int __pyx_t_3;
      int __pyx_t_4;
      PyObject *__pyx_t_5 = NULL;
      size_t __pyx_t_6;
      PyObject *__pyx_t_7 = NULL;
      PyObject *(*__pyx_t_8)(PyObject *);
      int __pyx_t_9;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_cond", 0);
      __Pyx_INCREF(__pyx_v_tokens);
      __Pyx_INCREF(__pyx_v_context);

      /* "Cython/Tempita/_tempita.py":796
 * 
 * def parse_cond(tokens: list, name, context) -> tuple:
 *     start = tokens[0][1]             # <<<<<<<<<<<<<<
 *     pieces = []
 *     context = context + ('if',)
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_start = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":797
 * def parse_cond(tokens: list, name, context) -> tuple:
 *     start = tokens[0][1]
 *     pieces = []             # <<<<<<<<<<<<<<
 *     context = context + ('if',)
 *     while 1:
*/
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 797, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_pieces = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":798
 *     start = tokens[0][1]
 *     pieces = []
 *     context = context + ('if',)             # <<<<<<<<<<<<<<
 *     while 1:
 *         if not tokens:
*/
      __pyx_t_2 = PyNumber_Add(__pyx_v_context, __pyx_mstate_global->__pyx_tuple[11]); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 798, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_context, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":799
 *     pieces = []
 *     context = context + ('if',)
 *     while 1:             # <<<<<<<<<<<<<<
 *         if not tokens:
 *             raise TemplateError(
*/
      while (1) {

        /* "Cython/Tempita/_tempita.py":800
 *     context = context + ('if',)
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'Missing {{endif}}',
*/
        if (__pyx_v_tokens == Py_None) __pyx_t_3 = 0;
        else
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_tokens);
          if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 800, __pyx_L1_error)
          __pyx_t_3 = (__pyx_temp != 0);
        }

        __pyx_t_4 = (!__pyx_t_3);


        if (unlikely(__pyx_t_4)) {


          /* "Cython/Tempita/_tempita.py":801
 *     while 1:
 *         if not tokens:
 *             raise TemplateError(             # <<<<<<<<<<<<<<
 *                 'Missing {{endif}}',
 *                 position=start, name=name)
*/
          __pyx_t_1 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 801, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);

          /* "Cython/Tempita/_tempita.py":803
 *             raise TemplateError(
 *                 'Missing {{endif}}',
 *                 position=start, name=name)             # <<<<<<<<<<<<<<
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'endif'):
*/
          __pyx_t_6 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_5))) {
            __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
            assert(__pyx_t_1);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
            __pyx_t_6 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_Missing_endif, __pyx_v_start, __pyx_v_name};
            #if CYTHON_VECTORCALL
            __pyx_t_7 = __pyx_mstate_global->__pyx_tuple[5];
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 801, __pyx_L1_error)
            __Pyx_INCREF(__pyx_t_7);
            #else
            {
              PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
              __pyx_t_7 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
              if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 801, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_7);
            }
            #endif
            __pyx_t_2 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 801, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __Pyx_Raise(__pyx_t_2, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __PYX_ERR(0, 801, __pyx_L1_error)

          /* "Cython/Tempita/_tempita.py":800
 *     context = context + ('if',)
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'Missing {{endif}}',
*/
        }

        /* "Cython/Tempita/_tempita.py":804
 *                 'Missing {{endif}}',
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'endif'):
 *             return ('cond', start) + tuple(pieces), tokens[1:]
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 804, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = PyTuple_Check(__pyx_t_2); 
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (__pyx_t_3) {

        } else {

          __pyx_t_4 = __pyx_t_3;

          goto __pyx_L7_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":805
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'endif'):             # <<<<<<<<<<<<<<
 *             return ('cond', start) + tuple(pieces), tokens[1:]
 *         next_chunk, tokens = parse_one_cond(tokens, name, context)
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 805, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 805, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 805, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_3 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_endif, Py_EQ); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 805, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        __pyx_t_4 = __pyx_t_3;

        __pyx_L7_bool_binop_done:;

        /* "Cython/Tempita/_tempita.py":804
 *                 'Missing {{endif}}',
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'endif'):
 *             return ('cond', start) + tuple(pieces), tokens[1:]
*/
        if (__pyx_t_4) {


          /* "Cython/Tempita/_tempita.py":806
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'endif'):
 *             return ('cond', start) + tuple(pieces), tokens[1:]             # <<<<<<<<<<<<<<
 *         next_chunk, tokens = parse_one_cond(tokens, name, context)
 *         pieces.append(next_chunk)
*/
          __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 806, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_cond);
          __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_cond);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_mstate_global->__pyx_n_u_cond) != (0)) __PYX_ERR(0, 806, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_start);
          __Pyx_GIVEREF(__pyx_v_start);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_start) != (0)) __PYX_ERR(0, 806, __pyx_L1_error);
          __pyx_t_2 = PyList_AsTuple(__pyx_v_pieces); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 806, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_7 = PyNumber_Add(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 806, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(__pyx_v_tokens == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
            __PYX_ERR(0, 806, __pyx_L1_error)
          }
          __pyx_t_2 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 806, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 806, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_7);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_7) != (0)) __PYX_ERR(0, 806, __pyx_L1_error);
          __Pyx_GIVEREF(__pyx_t_2);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 806, __pyx_L1_error);
          __pyx_t_7 = 0;
          __pyx_t_2 = 0;
          {
            PyObject *__pyx_temp;
            {
              __pyx_temp = __pyx_r;
              __pyx_r = ((PyObject*)__pyx_t_5);
            }
            __Pyx_XDECREF(__pyx_temp);
          }
          __pyx_t_5 = 0;
          goto __pyx_L0;

          /* "Cython/Tempita/_tempita.py":804
 *                 'Missing {{endif}}',
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'endif'):
 *             return ('cond', start) + tuple(pieces), tokens[1:]
*/
        }

        /* "Cython/Tempita/_tempita.py":807
 *                 and tokens[0][0] == 'endif'):
 *             return ('cond', start) + tuple(pieces), tokens[1:]
 *         next_chunk, tokens = parse_one_cond(tokens, name, context)             # <<<<<<<<<<<<<<
 *         pieces.append(next_chunk)
 * 
*/
        __pyx_t_2 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_parse_one_cond); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 807, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_6 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_7))) {
          __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
          assert(__pyx_t_2);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
          __pyx_t_6 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
          PyObject* sequence = __pyx_t_5;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 807, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_7 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_7);
            __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_2);
          } else {
            __pyx_t_7 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 807, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_7);
            __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_2);
          }
          #else
          __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          #endif
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_1 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1);
          index = 0; __pyx_t_7 = __pyx_t_8(__pyx_t_1); if (unlikely(!__pyx_t_7)) goto __pyx_L9_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_7);
          index = 1; __pyx_t_2 = __pyx_t_8(__pyx_t_1); if (unlikely(!__pyx_t_2)) goto __pyx_L9_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_2);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_1), 2) < (0)) __PYX_ERR(0, 807, __pyx_L1_error)
          __pyx_t_8 = NULL;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          goto __pyx_L10_unpacking_done;
          __pyx_L9_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_8 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 807, __pyx_L1_error)
          __pyx_L10_unpacking_done:;
        }
        if (!(likely(PyList_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_2))) __PYX_ERR(0, 807, __pyx_L1_error)
        __Pyx_XDECREF_SET(__pyx_v_next_chunk, __pyx_t_7);
        __pyx_t_7 = 0;
        __Pyx_DECREF_SET(__pyx_v_tokens, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "Cython/Tempita/_tempita.py":808
 *             return ('cond', start) + tuple(pieces), tokens[1:]
 *         next_chunk, tokens = parse_one_cond(tokens, name, context)
 *         pieces.append(next_chunk)             # <<<<<<<<<<<<<<
 * 
 * 
*/
        __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_pieces, __pyx_v_next_chunk); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 808, __pyx_L1_error)

      }

      /* "Cython/Tempita/_tempita.py":795
 * 
 * 
 * def parse_cond(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     start = tokens[0][1]
 *     pieces = []
*/

      /* function exit code */
      __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
      goto __pyx_L0;
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_7);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_cond", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_start);
      __Pyx_XDECREF(__pyx_v_pieces);
      __Pyx_XDECREF(__pyx_v_next_chunk);
      __Pyx_XDECREF(__pyx_v_tokens);
      __Pyx_XDECREF(__pyx_v_context);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":811
 * 
 * 
 * def parse_one_cond(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     (first, pos), tokens = tokens[0], tokens[1:]
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_21parse_one_cond(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_21parse_one_cond = {"parse_one_cond", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_21parse_one_cond, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_21parse_one_cond(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_tokens = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_context = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_one_cond (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tokens,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_context,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 811, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 811, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 811, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 811, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_one_cond", 0) < (0)) __PYX_ERR(0, 811, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_one_cond", 1, 3, 3, i); __PYX_ERR(0, 811, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 811, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 811, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 811, __pyx_L3_error)
        }
        __pyx_v_tokens = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_context = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_one_cond", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 811, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_one_cond", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 811, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_20parse_one_cond(__pyx_self, __pyx_v_tokens, __pyx_v_name, __pyx_v_context);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_20parse_one_cond(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context) {
      PyObject *__pyx_v_first = 0;
      PyObject *__pyx_v_pos = NULL;
      PyObject *__pyx_v_content = NULL;
      PyObject *__pyx_v_part = NULL;
      PyObject *__pyx_v_next_chunk = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *__pyx_t_5 = NULL;
      PyObject *(*__pyx_t_6)(PyObject *);
      int __pyx_t_7;
      size_t __pyx_t_8;
      PyObject *__pyx_t_9[4];
      Py_ssize_t __pyx_t_10;
      int __pyx_t_11;
      int __pyx_t_12;
      int __pyx_t_13;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_one_cond", 0);
      __Pyx_INCREF(__pyx_v_tokens);

      /* "Cython/Tempita/_tempita.py":813
 * def parse_one_cond(tokens: list, name, context) -> tuple:
 *     first: str
 *     (first, pos), tokens = tokens[0], tokens[1:]             # <<<<<<<<<<<<<<
 *     content = []
 *     if first.endswith(':'):
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 813, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 813, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
        PyObject* sequence = __pyx_t_1;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 813, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_3);
          __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_4);
        } else {
          __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 813, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
          __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_4);
        }
        #else
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 813, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 813, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
        index = 0; __pyx_t_3 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        index = 1; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_4);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 2) < (0)) __PYX_ERR(0, 813, __pyx_L1_error)
        __pyx_t_6 = NULL;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        goto __pyx_L4_unpacking_done;
        __pyx_L3_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_6 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 813, __pyx_L1_error)
        __pyx_L4_unpacking_done:;
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 813, __pyx_L1_error)
      __pyx_v_first = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_v_pos = __pyx_t_4;
      __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_tokens, ((PyObject*)__pyx_t_2));
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":814
 *     first: str
 *     (first, pos), tokens = tokens[0], tokens[1:]
 *     content = []             # <<<<<<<<<<<<<<
 *     if first.endswith(':'):
 *         first = first[:-1]
*/
      __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 814, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_content = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":815
 *     (first, pos), tokens = tokens[0], tokens[1:]
 *     content = []
 *     if first.endswith(':'):             # <<<<<<<<<<<<<<
 *         first = first[:-1]
 *     if first.startswith('if '):
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "endswith");
        __PYX_ERR(0, 815, __pyx_L1_error)
      }
      __pyx_t_7 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u__9, 0, PY_SSIZE_T_MAX, 1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 815, __pyx_L1_error)
      if (__pyx_t_7) {


        /* "Cython/Tempita/_tempita.py":816
 *     content = []
 *     if first.endswith(':'):
 *         first = first[:-1]             # <<<<<<<<<<<<<<
 *     if first.startswith('if '):
 *         part = ('if', pos, first[3:].lstrip(), content)
*/
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 816, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_PyUnicode_Substring(__pyx_v_first, 0, -1L); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 816, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF_SET(__pyx_v_first, ((PyObject*)__pyx_t_2));
        __pyx_t_2 = 0;

        /* "Cython/Tempita/_tempita.py":815
 *     (first, pos), tokens = tokens[0], tokens[1:]
 *     content = []
 *     if first.endswith(':'):             # <<<<<<<<<<<<<<
 *         first = first[:-1]
 *     if first.startswith('if '):
*/
      }

      /* "Cython/Tempita/_tempita.py":817
 *     if first.endswith(':'):
 *         first = first[:-1]
 *     if first.startswith('if '):             # <<<<<<<<<<<<<<
 *         part = ('if', pos, first[3:].lstrip(), content)
 *     elif first.startswith('elif '):
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "startswith");
        __PYX_ERR(0, 817, __pyx_L1_error)
      }
      __pyx_t_7 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u_if, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 817, __pyx_L1_error)
      if (__pyx_t_7) {


        /* "Cython/Tempita/_tempita.py":818
 *         first = first[:-1]
 *     if first.startswith('if '):
 *         part = ('if', pos, first[3:].lstrip(), content)             # <<<<<<<<<<<<<<
 *     elif first.startswith('elif '):
 *         part = ('elif', pos, first[5:].lstrip(), content)
*/
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 818, __pyx_L1_error)
        }
        __pyx_t_4 = __Pyx_PyUnicode_Substring(__pyx_v_first, 3, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 818, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_1 = __pyx_t_4;
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_8 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
          __pyx_t_2 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lstrip, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 818, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
        }
        if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 818, __pyx_L1_error)
        __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 818, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_if_2);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_if_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_mstate_global->__pyx_n_u_if_2) != (0)) __PYX_ERR(0, 818, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_pos);
        __Pyx_GIVEREF(__pyx_v_pos);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 818, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2) != (0)) __PYX_ERR(0, 818, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_content);
        __Pyx_GIVEREF(__pyx_v_content);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_v_content) != (0)) __PYX_ERR(0, 818, __pyx_L1_error);
        __pyx_t_2 = 0;
        __pyx_v_part = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "Cython/Tempita/_tempita.py":817
 *     if first.endswith(':'):
 *         first = first[:-1]
 *     if first.startswith('if '):             # <<<<<<<<<<<<<<
 *         part = ('if', pos, first[3:].lstrip(), content)
 *     elif first.startswith('elif '):
*/
        goto __pyx_L6;
      }

      /* "Cython/Tempita/_tempita.py":819
 *     if first.startswith('if '):
 *         part = ('if', pos, first[3:].lstrip(), content)
 *     elif first.startswith('elif '):             # <<<<<<<<<<<<<<
 *         part = ('elif', pos, first[5:].lstrip(), content)
 *     elif first == 'else':
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "startswith");
        __PYX_ERR(0, 819, __pyx_L1_error)
      }
      __pyx_t_7 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u_elif, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 819, __pyx_L1_error)
      if (__pyx_t_7) {


        /* "Cython/Tempita/_tempita.py":820
 *         part = ('if', pos, first[3:].lstrip(), content)
 *     elif first.startswith('elif '):
 *         part = ('elif', pos, first[5:].lstrip(), content)             # <<<<<<<<<<<<<<
 *     elif first == 'else':
 *         part = ('else', pos, None, content)
*/
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 820, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyUnicode_Substring(__pyx_v_first, 5, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 820, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __pyx_t_1;
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_8 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
          __pyx_t_4 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_lstrip, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 820, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        if (!(likely(PyUnicode_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_4))) __PYX_ERR(0, 820, __pyx_L1_error)
        __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 820, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_elif_2);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_elif_2);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_mstate_global->__pyx_n_u_elif_2) != (0)) __PYX_ERR(0, 820, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_pos);
        __Pyx_GIVEREF(__pyx_v_pos);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 820, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_4);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4) != (0)) __PYX_ERR(0, 820, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_content);
        __Pyx_GIVEREF(__pyx_v_content);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_content) != (0)) __PYX_ERR(0, 820, __pyx_L1_error);
        __pyx_t_4 = 0;
        __pyx_v_part = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "Cython/Tempita/_tempita.py":819
 *     if first.startswith('if '):
 *         part = ('if', pos, first[3:].lstrip(), content)
 *     elif first.startswith('elif '):             # <<<<<<<<<<<<<<
 *         part = ('elif', pos, first[5:].lstrip(), content)
 *     elif first == 'else':
*/
        goto __pyx_L6;
      }

      /* "Cython/Tempita/_tempita.py":821
 *     elif first.startswith('elif '):
 *         part = ('elif', pos, first[5:].lstrip(), content)
 *     elif first == 'else':             # <<<<<<<<<<<<<<
 *         part = ('else', pos, None, content)
 *     else:
*/
      __pyx_t_7 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_v_first, __pyx_mstate_global->__pyx_n_u_else, Py_EQ); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 821, __pyx_L1_error)
      if (likely(__pyx_t_7)) {


        /* "Cython/Tempita/_tempita.py":822
 *         part = ('elif', pos, first[5:].lstrip(), content)
 *     elif first == 'else':
 *         part = ('else', pos, None, content)             # <<<<<<<<<<<<<<
 *     else:
 *         assert 0, "Unexpected token %r at %s" % (first, pos)
*/
        __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 822, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_else);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_else);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_mstate_global->__pyx_n_u_else) != (0)) __PYX_ERR(0, 822, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_pos);
        __Pyx_GIVEREF(__pyx_v_pos);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 822, __pyx_L1_error);
        __Pyx_INCREF(Py_None);
        __Pyx_GIVEREF(Py_None);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None) != (0)) __PYX_ERR(0, 822, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_content);
        __Pyx_GIVEREF(__pyx_v_content);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_content) != (0)) __PYX_ERR(0, 822, __pyx_L1_error);
        __pyx_v_part = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "Cython/Tempita/_tempita.py":821
 *     elif first.startswith('elif '):
 *         part = ('elif', pos, first[5:].lstrip(), content)
 *     elif first == 'else':             # <<<<<<<<<<<<<<
 *         part = ('else', pos, None, content)
 *     else:
*/
        goto __pyx_L6;
      }

      /* "Cython/Tempita/_tempita.py":824
 *         part = ('else', pos, None, content)
 *     else:
 *         assert 0, "Unexpected token %r at %s" % (first, pos)             # <<<<<<<<<<<<<<
 *     while 1:
 *         if not tokens:
*/
      /*else*/ {
        #ifndef CYTHON_WITHOUT_ASSERTIONS
        if (unlikely(__pyx_assertions_enabled())) {
          __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_first), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Str(__pyx_v_pos), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 824, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_9[0] = __pyx_mstate_global->__pyx_kp_u_Unexpected_token;
          __pyx_t_9[1] = __pyx_t_1;
          __pyx_t_9[2] = __pyx_mstate_global->__pyx_kp_u_at_2;
          __pyx_t_9[3] = __pyx_t_4;
          __pyx_t_10 = 21;
          #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
          __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9[1]) + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9[3]);
          #endif
          __pyx_t_11 = 0;
          #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
          __pyx_t_11 |= __Pyx_PyUnicode_KIND_04(__pyx_t_9[1]) | __Pyx_PyUnicode_KIND_04(__pyx_t_9[3]);
          #endif
          __pyx_t_2 = __Pyx_PyUnicode_Join(__pyx_t_9, 4, __pyx_t_10, __pyx_t_11);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 824, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_t_2, 0, 0);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __PYX_ERR(0, 824, __pyx_L1_error)
        }
        #else
        if ((1)); else __PYX_ERR(0, 824, __pyx_L1_error)
        #endif
      }
      __pyx_L6:;

      /* "Cython/Tempita/_tempita.py":825
 *     else:
 *         assert 0, "Unexpected token %r at %s" % (first, pos)
 *     while 1:             # <<<<<<<<<<<<<<
 *         if not tokens:
 *             raise TemplateError(
*/
      while (1) {

        /* "Cython/Tempita/_tempita.py":826
 *         assert 0, "Unexpected token %r at %s" % (first, pos)
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'No {{endif}}',
*/
        if (__pyx_v_tokens == Py_None) __pyx_t_7 = 0;
        else
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_tokens);
          if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 826, __pyx_L1_error)
          __pyx_t_7 = (__pyx_temp != 0);
        }

        __pyx_t_12 = (!__pyx_t_7);


        if (unlikely(__pyx_t_12)) {


          /* "Cython/Tempita/_tempita.py":827
 *     while 1:
 *         if not tokens:
 *             raise TemplateError(             # <<<<<<<<<<<<<<
 *                 'No {{endif}}',
 *                 position=pos, name=name)
*/
          __pyx_t_4 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);

          /* "Cython/Tempita/_tempita.py":829
 *             raise TemplateError(
 *                 'No {{endif}}',
 *                 position=pos, name=name)             # <<<<<<<<<<<<<<
 *         if (isinstance(tokens[0], tuple)
 *             and (tokens[0][0] == 'endif'
*/
          __pyx_t_8 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_1))) {
            __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
            assert(__pyx_t_4);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_1, __pyx__function);
            __pyx_t_8 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_No_endif, __pyx_v_pos, __pyx_v_name};
            #if CYTHON_VECTORCALL
            __pyx_t_3 = __pyx_mstate_global->__pyx_tuple[5];
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error)
            __Pyx_INCREF(__pyx_t_3);
            #else
            {
              PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
              __pyx_t_3 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
              if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
            }
            #endif
            __pyx_t_2 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_1, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 827, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
          }
          __Pyx_Raise(__pyx_t_2, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __PYX_ERR(0, 827, __pyx_L1_error)

          /* "Cython/Tempita/_tempita.py":826
 *         assert 0, "Unexpected token %r at %s" % (first, pos)
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'No {{endif}}',
*/
        }

        /* "Cython/Tempita/_tempita.py":830
 *                 'No {{endif}}',
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *             and (tokens[0][0] == 'endif'
 *                  or tokens[0][0].startswith('elif ')
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 830, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 830, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_7 = PyTuple_Check(__pyx_t_2); 
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (__pyx_t_7) {

        } else {

          __pyx_t_12 = __pyx_t_7;

          goto __pyx_L11_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":831
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)
 *             and (tokens[0][0] == 'endif'             # <<<<<<<<<<<<<<
 *                  or tokens[0][0].startswith('elif ')
 *                  or tokens[0][0] == 'else')):
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 831, __pyx_L1_error)
        }
        __pyx_t_2 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 831, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 831, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_7 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_endif, Py_EQ); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 831, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (!__pyx_t_7) {

        } else {

          __pyx_t_12 = __pyx_t_7;

          goto __pyx_L11_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":832
 *         if (isinstance(tokens[0], tuple)
 *             and (tokens[0][0] == 'endif'
 *                  or tokens[0][0].startswith('elif ')             # <<<<<<<<<<<<<<
 *                  or tokens[0][0] == 'else')):
 *             return part, tokens
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 832, __pyx_L1_error)
        }
        __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 832, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 832, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_2 = __pyx_t_4;
        __Pyx_INCREF(__pyx_t_2);
        __pyx_t_8 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_elif};
          __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_startswith, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 832, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 832, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (!__pyx_t_7) {

        } else {

          __pyx_t_12 = __pyx_t_7;

          goto __pyx_L11_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":833
 *             and (tokens[0][0] == 'endif'
 *                  or tokens[0][0].startswith('elif ')
 *                  or tokens[0][0] == 'else')):             # <<<<<<<<<<<<<<
 *             return part, tokens
 *         next_chunk, tokens = parse_expr(tokens, name, context)
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 833, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 833, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_7 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_else, Py_EQ); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 833, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        __pyx_t_12 = __pyx_t_7;

        __pyx_L11_bool_binop_done:;

        /* "Cython/Tempita/_tempita.py":830
 *                 'No {{endif}}',
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *             and (tokens[0][0] == 'endif'
 *                  or tokens[0][0].startswith('elif ')
*/
        if (__pyx_t_12) {


          /* "Cython/Tempita/_tempita.py":834
 *                  or tokens[0][0].startswith('elif ')
 *                  or tokens[0][0] == 'else')):
 *             return part, tokens             # <<<<<<<<<<<<<<
 *         next_chunk, tokens = parse_expr(tokens, name, context)
 *         content.append(next_chunk)
*/
          if (unlikely(!__pyx_v_part)) { __Pyx_RaiseUnboundLocalError("part"); __PYX_ERR(0, 834, __pyx_L1_error) }
          __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 834, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_INCREF(__pyx_v_part);
          __Pyx_GIVEREF(__pyx_v_part);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_part) != (0)) __PYX_ERR(0, 834, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_tokens);
          __Pyx_GIVEREF(__pyx_v_tokens);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tokens) != (0)) __PYX_ERR(0, 834, __pyx_L1_error);
          {
            PyObject *__pyx_temp;
            {
              __pyx_temp = __pyx_r;
              __pyx_r = ((PyObject*)__pyx_t_4);
            }
            __Pyx_XDECREF(__pyx_temp);
          }
          __pyx_t_4 = 0;
          goto __pyx_L0;

          /* "Cython/Tempita/_tempita.py":830
 *                 'No {{endif}}',
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *             and (tokens[0][0] == 'endif'
 *                  or tokens[0][0].startswith('elif ')
*/
        }

        /* "Cython/Tempita/_tempita.py":835
 *                  or tokens[0][0] == 'else')):
 *             return part, tokens
 *         next_chunk, tokens = parse_expr(tokens, name, context)             # <<<<<<<<<<<<<<
 *         content.append(next_chunk)
 * 
*/
        __pyx_t_1 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_parse_expr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_1);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_1);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_8 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (4-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
          PyObject* sequence = __pyx_t_4;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 835, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_2);
            __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_1);
          } else {
            __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_2);
            __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 835, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_1);
          }
          #else
          __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_3 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_6 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3);
          index = 0; __pyx_t_2 = __pyx_t_6(__pyx_t_3); if (unlikely(!__pyx_t_2)) goto __pyx_L15_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_2);
          index = 1; __pyx_t_1 = __pyx_t_6(__pyx_t_3); if (unlikely(!__pyx_t_1)) goto __pyx_L15_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_1);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_3), 2) < (0)) __PYX_ERR(0, 835, __pyx_L1_error)
          __pyx_t_6 = NULL;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          goto __pyx_L16_unpacking_done;
          __pyx_L15_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __pyx_t_6 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 835, __pyx_L1_error)
          __pyx_L16_unpacking_done:;
        }
        if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 835, __pyx_L1_error)
        __Pyx_XDECREF_SET(__pyx_v_next_chunk, __pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF_SET(__pyx_v_tokens, ((PyObject*)__pyx_t_1));
        __pyx_t_1 = 0;

        /* "Cython/Tempita/_tempita.py":836
 *             return part, tokens
 *         next_chunk, tokens = parse_expr(tokens, name, context)
 *         content.append(next_chunk)             # <<<<<<<<<<<<<<
 * 
 * 
*/
        __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_content, __pyx_v_next_chunk); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 836, __pyx_L1_error)

      }

      /* "Cython/Tempita/_tempita.py":811
 * 
 * 
 * def parse_one_cond(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     (first, pos), tokens = tokens[0], tokens[1:]
*/

      /* function exit code */
      __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
      goto __pyx_L0;
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_one_cond", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_first);
      __Pyx_XDECREF(__pyx_v_pos);
      __Pyx_XDECREF(__pyx_v_content);
      __Pyx_XDECREF(__pyx_v_part);
      __Pyx_XDECREF(__pyx_v_next_chunk);
      __Pyx_XDECREF(__pyx_v_tokens);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":839
 * 
 * 
 * def parse_for(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_23parse_for(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_23parse_for = {"parse_for", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_23parse_for, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_23parse_for(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_tokens = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_context = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_for (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tokens,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_context,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 839, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 839, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 839, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 839, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_for", 0) < (0)) __PYX_ERR(0, 839, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_for", 1, 3, 3, i); __PYX_ERR(0, 839, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 839, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 839, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 839, __pyx_L3_error)
        }
        __pyx_v_tokens = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_context = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_for", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 839, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_for", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 839, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_22parse_for(__pyx_self, __pyx_v_tokens, __pyx_v_name, __pyx_v_context);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_22parse_for(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context) {
      PyObject *__pyx_v_first = 0;
      PyObject *__pyx_v_pos = NULL;
      PyObject *__pyx_v_content = NULL;
      PyObject *__pyx_v_match = NULL;
      PyObject *__pyx_v_vars_part = 0;
      PyObject *__pyx_v_vars = NULL;
      PyObject *__pyx_v_expr = NULL;
      PyObject *__pyx_v_next_chunk = NULL;
      PyObject *__pyx_8genexpr2__pyx_v_v = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *(*__pyx_t_5)(PyObject *);
      int __pyx_t_6;
      size_t __pyx_t_7;
      int __pyx_t_8;
      PyObject *__pyx_t_9 = NULL;
      Py_ssize_t __pyx_t_10;
      Py_ssize_t __pyx_t_11;
      PyObject *__pyx_t_12[3];
      int __pyx_t_13;
      int __pyx_t_14;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_for", 0);
      __Pyx_INCREF(__pyx_v_tokens);
      __Pyx_INCREF(__pyx_v_context);

      /* "Cython/Tempita/_tempita.py":841
 * def parse_for(tokens: list, name, context) -> tuple:
 *     first: str
 *     first, pos = tokens[0]             # <<<<<<<<<<<<<<
 *     tokens = tokens[1:]
 *     context = ('for',) + context
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 841, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
        PyObject* sequence = __pyx_t_1;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 841, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_2);
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_3);
        } else {
          __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 841, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 841, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
        }
        #else
        __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 841, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 841, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 841, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4);
        index = 0; __pyx_t_2 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_2);
        index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < (0)) __PYX_ERR(0, 841, __pyx_L1_error)
        __pyx_t_5 = NULL;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        goto __pyx_L4_unpacking_done;
        __pyx_L3_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_5 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 841, __pyx_L1_error)
        __pyx_L4_unpacking_done:;
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 841, __pyx_L1_error)
      __pyx_v_first = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;
      __pyx_v_pos = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":842
 *     first: str
 *     first, pos = tokens[0]
 *     tokens = tokens[1:]             # <<<<<<<<<<<<<<
 *     context = ('for',) + context
 *     content = []
*/
      __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 842, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_tokens, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":843
 *     first, pos = tokens[0]
 *     tokens = tokens[1:]
 *     context = ('for',) + context             # <<<<<<<<<<<<<<
 *     content = []
 *     assert first.startswith('for '), first
*/
      __pyx_t_1 = PyNumber_Add(__pyx_mstate_global->__pyx_tuple[12], __pyx_v_context); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 843, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_context, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":844
 *     tokens = tokens[1:]
 *     context = ('for',) + context
 *     content = []             # <<<<<<<<<<<<<<
 *     assert first.startswith('for '), first
 *     if first.endswith(':'):
*/
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 844, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_content = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":845
 *     context = ('for',) + context
 *     content = []
 *     assert first.startswith('for '), first             # <<<<<<<<<<<<<<
 *     if first.endswith(':'):
 *         first = first[:-1]
*/
      #ifndef CYTHON_WITHOUT_ASSERTIONS
      if (unlikely(__pyx_assertions_enabled())) {
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "startswith");
          __PYX_ERR(0, 845, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u_for_2, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 845, __pyx_L1_error)
        if (unlikely(!__pyx_t_6)) {
          __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), __pyx_v_first, 0, 0);
          __PYX_ERR(0, 845, __pyx_L1_error)
        }

      }
      #else
      if ((1)); else __PYX_ERR(0, 845, __pyx_L1_error)
      #endif

      /* "Cython/Tempita/_tempita.py":846
 *     content = []
 *     assert first.startswith('for '), first
 *     if first.endswith(':'):             # <<<<<<<<<<<<<<
 *         first = first[:-1]
 *     first = first[3:].strip()
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "endswith");
        __PYX_ERR(0, 846, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u__9, 0, PY_SSIZE_T_MAX, 1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 846, __pyx_L1_error)
      if (__pyx_t_6) {


        /* "Cython/Tempita/_tempita.py":847
 *     assert first.startswith('for '), first
 *     if first.endswith(':'):
 *         first = first[:-1]             # <<<<<<<<<<<<<<
 *     first = first[3:].strip()
 *     match = in_re.search(first)
*/
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 847, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyUnicode_Substring(__pyx_v_first, 0, -1L); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 847, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF_SET(__pyx_v_first, ((PyObject*)__pyx_t_1));
        __pyx_t_1 = 0;

        /* "Cython/Tempita/_tempita.py":846
 *     content = []
 *     assert first.startswith('for '), first
 *     if first.endswith(':'):             # <<<<<<<<<<<<<<
 *         first = first[:-1]
 *     first = first[3:].strip()
*/
      }

      /* "Cython/Tempita/_tempita.py":848
 *     if first.endswith(':'):
 *         first = first[:-1]
 *     first = first[3:].strip()             # <<<<<<<<<<<<<<
 *     match = in_re.search(first)
 *     if not match:
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
        __PYX_ERR(0, 848, __pyx_L1_error)
      }
      __pyx_t_2 = __Pyx_PyUnicode_Substring(__pyx_v_first, 3, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 848, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __pyx_t_2;
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 848, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_1))) __PYX_ERR(0, 848, __pyx_L1_error)
      __Pyx_DECREF_SET(__pyx_v_first, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":849
 *         first = first[:-1]
 *     first = first[3:].strip()
 *     match = in_re.search(first)             # <<<<<<<<<<<<<<
 *     if not match:
 *         raise TemplateError(
*/
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_in_re); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 849, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_search); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 849, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_first};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 849, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_v_match = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":850
 *     first = first[3:].strip()
 *     match = in_re.search(first)
 *     if not match:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             'Bad for (no "in") in %r' % first,
*/
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_match); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 850, __pyx_L1_error)
      __pyx_t_8 = (!__pyx_t_6);


      if (unlikely(__pyx_t_8)) {


        /* "Cython/Tempita/_tempita.py":851
 *     match = in_re.search(first)
 *     if not match:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             'Bad for (no "in") in %r' % first,
 *             position=pos, name=name)
*/
        __pyx_t_4 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 851, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);

        /* "Cython/Tempita/_tempita.py":852
 *     if not match:
 *         raise TemplateError(
 *             'Bad for (no "in") in %r' % first,             # <<<<<<<<<<<<<<
 *             position=pos, name=name)
 *     vars_part: str = first[:match.start()]
*/
        __pyx_t_3 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Bad_for_no_in_in_r, __pyx_v_first); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 852, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);

        /* "Cython/Tempita/_tempita.py":853
 *         raise TemplateError(
 *             'Bad for (no "in") in %r' % first,
 *             position=pos, name=name)             # <<<<<<<<<<<<<<
 *     vars_part: str = first[:match.start()]
 *     if '(' in vars_part:
*/
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_4);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_t_3, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_9 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 851, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_9);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_9 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 851, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_9);
          }
          #endif
          __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        __Pyx_Raise(__pyx_t_1, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __PYX_ERR(0, 851, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":850
 *     first = first[3:].strip()
 *     match = in_re.search(first)
 *     if not match:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             'Bad for (no "in") in %r' % first,
*/
      }

      /* "Cython/Tempita/_tempita.py":854
 *             'Bad for (no "in") in %r' % first,
 *             position=pos, name=name)
 *     vars_part: str = first[:match.start()]             # <<<<<<<<<<<<<<
 *     if '(' in vars_part:
 *         raise TemplateError(
*/
      __pyx_t_2 = __pyx_v_match;
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
        __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_start, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 854, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __pyx_t_8 = (__pyx_t_1 == Py_None);
      if (__pyx_t_8) {

        __pyx_t_10 = PY_SSIZE_T_MAX;
      } else {
        __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 854, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_11;
      }

      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyUnicode_Substring(__pyx_v_first, 0, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 854, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      __pyx_v_vars_part = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":855
 *             position=pos, name=name)
 *     vars_part: str = first[:match.start()]
 *     if '(' in vars_part:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             f'You cannot have () in the variable section of a for loop ({vars_part!r})', position=pos, name=name)
*/
      __pyx_t_8 = (__Pyx_UnicodeContainsUCS4(40, __pyx_v_vars_part, Py_EQ)); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 855, __pyx_L1_error)
      if (unlikely(__pyx_t_8)) {


        /* "Cython/Tempita/_tempita.py":856
 *     vars_part: str = first[:match.start()]
 *     if '(' in vars_part:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             f'You cannot have () in the variable section of a for loop ({vars_part!r})', position=pos, name=name)
 *     vars = tuple([v.strip() for v in vars_part.split(',') if v.strip()])
*/
        __pyx_t_2 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 856, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);

        /* "Cython/Tempita/_tempita.py":857
 *     if '(' in vars_part:
 *         raise TemplateError(
 *             f'You cannot have () in the variable section of a for loop ({vars_part!r})', position=pos, name=name)             # <<<<<<<<<<<<<<
 *     vars = tuple([v.strip() for v in vars_part.split(',') if v.strip()])
 *     expr = first[match.end():]
*/
        __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_vars_part), __pyx_mstate_global->__pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 857, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_12[0] = __pyx_mstate_global->__pyx_kp_u_You_cannot_have_in_the_variable;
        __pyx_t_12[1] = __pyx_t_3;
        __pyx_t_12[2] = __pyx_mstate_global->__pyx_kp_u__16;
        __pyx_t_10 = 59;
        #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
        __pyx_t_10 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12[1]);
        #endif
        __pyx_t_13 = 0;
        #if __Pyx_PyUnicode_Join_CAN_USE_KIND_AND_LENGTH
        __pyx_t_13 |= __Pyx_PyUnicode_KIND_04(__pyx_t_12[1]);
        #endif
        __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_12, 3, __pyx_t_10, __pyx_t_13);
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 857, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":856
 *     vars_part: str = first[:match.start()]
 *     if '(' in vars_part:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             f'You cannot have () in the variable section of a for loop ({vars_part!r})', position=pos, name=name)
 *     vars = tuple([v.strip() for v in vars_part.split(',') if v.strip()])
*/
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_9))) {
          __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9);
          assert(__pyx_t_2);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_2);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_t_4, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_3 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 856, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_3);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_3 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 856, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          #endif
          __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
          __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 856, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        __Pyx_Raise(__pyx_t_1, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __PYX_ERR(0, 856, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":855
 *             position=pos, name=name)
 *     vars_part: str = first[:match.start()]
 *     if '(' in vars_part:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             f'You cannot have () in the variable section of a for loop ({vars_part!r})', position=pos, name=name)
*/
      }

      /* "Cython/Tempita/_tempita.py":858
 *         raise TemplateError(
 *             f'You cannot have () in the variable section of a for loop ({vars_part!r})', position=pos, name=name)
 *     vars = tuple([v.strip() for v in vars_part.split(',') if v.strip()])             # <<<<<<<<<<<<<<
 *     expr = first[match.end():]
 *     while 1:
*/
      { /* enter inner scope */
        __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 858, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_9 = PyUnicode_Split(__pyx_v_vars_part, __pyx_mstate_global->__pyx_kp_u__17, -1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 858, __pyx_L10_error)
        __Pyx_GOTREF(__pyx_t_9);
        if (!(likely(PyList_CheckExact(__pyx_t_9)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_9))) __PYX_ERR(0, 858, __pyx_L10_error)
        __pyx_t_3 = __pyx_t_9; __Pyx_INCREF(__pyx_t_3);
        __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        for (;;) {
          {
            Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_3);
            #if !CYTHON_ASSUME_SAFE_SIZE
            if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 858, __pyx_L10_error)
            #endif
            if (__pyx_t_10 >= __pyx_temp) break;
          }
          __pyx_t_9 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_3, __pyx_t_10, __Pyx_ReferenceSharing_OwnStrongReference);
          ++__pyx_t_10;
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 858, __pyx_L10_error)
          __Pyx_GOTREF(__pyx_t_9);
          if (!(likely(PyUnicode_CheckExact(__pyx_t_9))||((__pyx_t_9) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_9))) __PYX_ERR(0, 858, __pyx_L10_error)
          __Pyx_XDECREF_SET(__pyx_8genexpr2__pyx_v_v, ((PyObject*)__pyx_t_9));
          __pyx_t_9 = 0;
          __pyx_t_9 = __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyUnicode_Type__strip, __pyx_8genexpr2__pyx_v_v); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 858, __pyx_L10_error)
          __Pyx_GOTREF(__pyx_t_9);
          if (!(likely(PyUnicode_CheckExact(__pyx_t_9)) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_9))) __PYX_ERR(0, 858, __pyx_L10_error)
          {
            Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_t_9);
            if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 858, __pyx_L10_error)
            __pyx_t_8 = (__pyx_temp != 0);
          }

          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (__pyx_t_8) {

            __pyx_t_9 = __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyUnicode_Type__strip, __pyx_8genexpr2__pyx_v_v); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 858, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_9);
            if (!(likely(PyUnicode_CheckExact(__pyx_t_9)) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_9))) __PYX_ERR(0, 858, __pyx_L10_error)
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, __pyx_t_9))) __PYX_ERR(0, 858, __pyx_L10_error)
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          }
        }
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_v); __pyx_8genexpr2__pyx_v_v = 0;
        goto __pyx_L15_exit_scope;
        __pyx_L10_error:;
        __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_v); __pyx_8genexpr2__pyx_v_v = 0;
        goto __pyx_L1_error;
        __pyx_L15_exit_scope:;
      } /* exit inner scope */
      __pyx_t_3 = PyList_AsTuple(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 858, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_vars = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":859
 *             f'You cannot have () in the variable section of a for loop ({vars_part!r})', position=pos, name=name)
 *     vars = tuple([v.strip() for v in vars_part.split(',') if v.strip()])
 *     expr = first[match.end():]             # <<<<<<<<<<<<<<
 *     while 1:
 *         if not tokens:
*/
      __pyx_t_1 = __pyx_v_match;
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_7 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_end, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 859, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_8 = (__pyx_t_3 == Py_None);
      if (__pyx_t_8) {

        __pyx_t_10 = 0;
      } else {
        __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 859, __pyx_L1_error)
        __pyx_t_10 = __pyx_t_11;
      }

      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyUnicode_Substring(__pyx_v_first, __pyx_t_10, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 859, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);

      __pyx_v_expr = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":860
 *     vars = tuple([v.strip() for v in vars_part.split(',') if v.strip()])
 *     expr = first[match.end():]
 *     while 1:             # <<<<<<<<<<<<<<
 *         if not tokens:
 *             raise TemplateError(
*/
      while (1) {

        /* "Cython/Tempita/_tempita.py":861
 *     expr = first[match.end():]
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'No {{endfor}}',
*/
        if (__pyx_v_tokens == Py_None) __pyx_t_8 = 0;
        else
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_tokens);
          if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 861, __pyx_L1_error)
          __pyx_t_8 = (__pyx_temp != 0);
        }

        __pyx_t_6 = (!__pyx_t_8);


        if (unlikely(__pyx_t_6)) {


          /* "Cython/Tempita/_tempita.py":862
 *     while 1:
 *         if not tokens:
 *             raise TemplateError(             # <<<<<<<<<<<<<<
 *                 'No {{endfor}}',
 *                 position=pos, name=name)
*/
          __pyx_t_1 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 862, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);

          /* "Cython/Tempita/_tempita.py":864
 *             raise TemplateError(
 *                 'No {{endfor}}',
 *                 position=pos, name=name)             # <<<<<<<<<<<<<<
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'endfor'):
*/
          __pyx_t_7 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_9))) {
            __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9);
            assert(__pyx_t_1);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
            __pyx_t_7 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_No_endfor, __pyx_v_pos, __pyx_v_name};
            #if CYTHON_VECTORCALL
            __pyx_t_4 = __pyx_mstate_global->__pyx_tuple[5];
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 862, __pyx_L1_error)
            __Pyx_INCREF(__pyx_t_4);
            #else
            {
              PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
              __pyx_t_4 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 862, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
            }
            #endif
            __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 862, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 862, __pyx_L1_error)

          /* "Cython/Tempita/_tempita.py":861
 *     expr = first[match.end():]
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'No {{endfor}}',
*/
        }

        /* "Cython/Tempita/_tempita.py":865
 *                 'No {{endfor}}',
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'endfor'):
 *             return ('for', pos, vars, expr, content), tokens[1:]
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 865, __pyx_L1_error)
        }
        __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 865, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_8 = PyTuple_Check(__pyx_t_3); 
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (__pyx_t_8) {

        } else {

          __pyx_t_6 = __pyx_t_8;

          goto __pyx_L20_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":866
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'endfor'):             # <<<<<<<<<<<<<<
 *             return ('for', pos, vars, expr, content), tokens[1:]
 *         next_chunk, tokens = parse_expr(tokens, name, context)
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 866, __pyx_L1_error)
        }
        __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 866, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 866, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_8 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_endfor, Py_EQ); if (unlikely((__pyx_t_8 < 0))) __PYX_ERR(0, 866, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

        __pyx_t_6 = __pyx_t_8;

        __pyx_L20_bool_binop_done:;

        /* "Cython/Tempita/_tempita.py":865
 *                 'No {{endfor}}',
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'endfor'):
 *             return ('for', pos, vars, expr, content), tokens[1:]
*/
        if (__pyx_t_6) {


          /* "Cython/Tempita/_tempita.py":867
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'endfor'):
 *             return ('for', pos, vars, expr, content), tokens[1:]             # <<<<<<<<<<<<<<
 *         next_chunk, tokens = parse_expr(tokens, name, context)
 *         content.append(next_chunk)
*/
          __pyx_t_9 = PyTuple_New(5); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 867, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_for);
          __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_for);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_n_u_for) != (0)) __PYX_ERR(0, 867, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_pos);
          __Pyx_GIVEREF(__pyx_v_pos);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 867, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_vars);
          __Pyx_GIVEREF(__pyx_v_vars);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_vars) != (0)) __PYX_ERR(0, 867, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_expr);
          __Pyx_GIVEREF(__pyx_v_expr);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_v_expr) != (0)) __PYX_ERR(0, 867, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_content);
          __Pyx_GIVEREF(__pyx_v_content);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 4, __pyx_v_content) != (0)) __PYX_ERR(0, 867, __pyx_L1_error);
          if (unlikely(__pyx_v_tokens == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
            __PYX_ERR(0, 867, __pyx_L1_error)
          }
          __pyx_t_3 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 867, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 867, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_GIVEREF(__pyx_t_9);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 867, __pyx_L1_error);
          __Pyx_GIVEREF(__pyx_t_3);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3) != (0)) __PYX_ERR(0, 867, __pyx_L1_error);
          __pyx_t_9 = 0;
          __pyx_t_3 = 0;
          {
            PyObject *__pyx_temp;
            {
              __pyx_temp = __pyx_r;
              __pyx_r = ((PyObject*)__pyx_t_4);
            }
            __Pyx_XDECREF(__pyx_temp);
          }
          __pyx_t_4 = 0;
          goto __pyx_L0;

          /* "Cython/Tempita/_tempita.py":865
 *                 'No {{endfor}}',
 *                 position=pos, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'endfor'):
 *             return ('for', pos, vars, expr, content), tokens[1:]
*/
        }

        /* "Cython/Tempita/_tempita.py":868
 *                 and tokens[0][0] == 'endfor'):
 *             return ('for', pos, vars, expr, content), tokens[1:]
 *         next_chunk, tokens = parse_expr(tokens, name, context)             # <<<<<<<<<<<<<<
 *         content.append(next_chunk)
 * 
*/
        __pyx_t_3 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_parse_expr); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 868, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_7 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_9))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9);
          assert(__pyx_t_3);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
          __pyx_t_7 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 868, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
          PyObject* sequence = __pyx_t_4;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 868, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_9 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_9);
            __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_3);
          } else {
            __pyx_t_9 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 868, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 868, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_3);
          }
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 868, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 868, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 868, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1);
          index = 0; __pyx_t_9 = __pyx_t_5(__pyx_t_1); if (unlikely(!__pyx_t_9)) goto __pyx_L22_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_9);
          index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_1); if (unlikely(!__pyx_t_3)) goto __pyx_L22_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_3);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_1), 2) < (0)) __PYX_ERR(0, 868, __pyx_L1_error)
          __pyx_t_5 = NULL;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          goto __pyx_L23_unpacking_done;
          __pyx_L22_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_5 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 868, __pyx_L1_error)
          __pyx_L23_unpacking_done:;
        }
        if (!(likely(PyList_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_3))) __PYX_ERR(0, 868, __pyx_L1_error)
        __Pyx_XDECREF_SET(__pyx_v_next_chunk, __pyx_t_9);
        __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_tokens, ((PyObject*)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":869
 *             return ('for', pos, vars, expr, content), tokens[1:]
 *         next_chunk, tokens = parse_expr(tokens, name, context)
 *         content.append(next_chunk)             # <<<<<<<<<<<<<<
 * 
 * 
*/
        __pyx_t_14 = __Pyx_PyList_Append(__pyx_v_content, __pyx_v_next_chunk); if (unlikely(__pyx_t_14 == ((int)-1))) __PYX_ERR(0, 869, __pyx_L1_error)

      }

      /* "Cython/Tempita/_tempita.py":839
 * 
 * 
 * def parse_for(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/

      /* function exit code */
      __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
      goto __pyx_L0;
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_9);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_for", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_first);
      __Pyx_XDECREF(__pyx_v_pos);
      __Pyx_XDECREF(__pyx_v_content);
      __Pyx_XDECREF(__pyx_v_match);
      __Pyx_XDECREF(__pyx_v_vars_part);
      __Pyx_XDECREF(__pyx_v_vars);
      __Pyx_XDECREF(__pyx_v_expr);
      __Pyx_XDECREF(__pyx_v_next_chunk);
      __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_v);
      __Pyx_XDECREF(__pyx_v_tokens);
      __Pyx_XDECREF(__pyx_v_context);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":872
 * 
 * 
 * def parse_default(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_25parse_default(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_25parse_default = {"parse_default", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_25parse_default, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_25parse_default(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_tokens = 0;
      PyObject *__pyx_v_name = 0;
      CYTHON_UNUSED PyObject *__pyx_v_context = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_default (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tokens,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_context,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 872, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 872, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 872, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 872, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_default", 0) < (0)) __PYX_ERR(0, 872, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_default", 1, 3, 3, i); __PYX_ERR(0, 872, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 872, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 872, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 872, __pyx_L3_error)
        }
        __pyx_v_tokens = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_context = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_default", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 872, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_default", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 872, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_24parse_default(__pyx_self, __pyx_v_tokens, __pyx_v_name, __pyx_v_context);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_24parse_default(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, CYTHON_UNUSED PyObject *__pyx_v_context) {
      PyObject *__pyx_v_first = 0;
      PyObject *__pyx_v_pos = NULL;
      PyObject *__pyx_v_parts = NULL;
      PyObject *__pyx_v_var = 0;
      PyObject *__pyx_v_expr = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *(*__pyx_t_5)(PyObject *);
      int __pyx_t_6;
      Py_ssize_t __pyx_t_7;
      size_t __pyx_t_8;
      PyObject *__pyx_t_9 = NULL;
      int __pyx_t_10;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_default", 0);

      /* "Cython/Tempita/_tempita.py":874
 * def parse_default(tokens: list, name, context) -> tuple:
 *     first: str
 *     first, pos = tokens[0]             # <<<<<<<<<<<<<<
 *     assert first.startswith('default ')
 *     first = first.split(None, 1)[1]
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 874, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
        PyObject* sequence = __pyx_t_1;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 874, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_2);
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_3);
        } else {
          __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 874, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 874, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
        }
        #else
        __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 874, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 874, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 874, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4);
        index = 0; __pyx_t_2 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_2);
        index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < (0)) __PYX_ERR(0, 874, __pyx_L1_error)
        __pyx_t_5 = NULL;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        goto __pyx_L4_unpacking_done;
        __pyx_L3_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_5 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 874, __pyx_L1_error)
        __pyx_L4_unpacking_done:;
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 874, __pyx_L1_error)
      __pyx_v_first = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;
      __pyx_v_pos = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":875
 *     first: str
 *     first, pos = tokens[0]
 *     assert first.startswith('default ')             # <<<<<<<<<<<<<<
 *     first = first.split(None, 1)[1]
 *     parts = first.split('=', 1)
*/
      #ifndef CYTHON_WITHOUT_ASSERTIONS
      if (unlikely(__pyx_assertions_enabled())) {
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "startswith");
          __PYX_ERR(0, 875, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u_default_2, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 875, __pyx_L1_error)
        if (unlikely(!__pyx_t_6)) {
          __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
          __PYX_ERR(0, 875, __pyx_L1_error)
        }

      }
      #else
      if ((1)); else __PYX_ERR(0, 875, __pyx_L1_error)
      #endif

      /* "Cython/Tempita/_tempita.py":876
 *     first, pos = tokens[0]
 *     assert first.startswith('default ')
 *     first = first.split(None, 1)[1]             # <<<<<<<<<<<<<<
 *     parts = first.split('=', 1)
 *     if len(parts) == 1:
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "split");
        __PYX_ERR(0, 876, __pyx_L1_error)
      }
      __pyx_t_1 = PyUnicode_Split(__pyx_v_first, ((PyObject *)NULL), 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 876, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!(likely(PyList_CheckExact(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 876, __pyx_L1_error)
      __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_t_1, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 876, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 876, __pyx_L1_error)
      __Pyx_DECREF_SET(__pyx_v_first, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":877
 *     assert first.startswith('default ')
 *     first = first.split(None, 1)[1]
 *     parts = first.split('=', 1)             # <<<<<<<<<<<<<<
 *     if len(parts) == 1:
 *         raise TemplateError(
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "split");
        __PYX_ERR(0, 877, __pyx_L1_error)
      }
      __pyx_t_3 = PyUnicode_Split(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u__7, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 877, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (!(likely(PyList_CheckExact(__pyx_t_3)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_3))) __PYX_ERR(0, 877, __pyx_L1_error)
      __pyx_v_parts = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":878
 *     first = first.split(None, 1)[1]
 *     parts = first.split('=', 1)
 *     if len(parts) == 1:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             "Expression must be {{default var=value}}; no = found in %r" % first,
*/
      __pyx_t_7 = __Pyx_PyList_GET_SIZE(__pyx_v_parts); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(0, 878, __pyx_L1_error)
      __pyx_t_6 = (__pyx_t_7 == 1);


      if (unlikely(__pyx_t_6)) {


        /* "Cython/Tempita/_tempita.py":879
 *     parts = first.split('=', 1)
 *     if len(parts) == 1:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             "Expression must be {{default var=value}}; no = found in %r" % first,
 *             position=pos, name=name)
*/
        __pyx_t_1 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 879, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);

        /* "Cython/Tempita/_tempita.py":880
 *     if len(parts) == 1:
 *         raise TemplateError(
 *             "Expression must be {{default var=value}}; no = found in %r" % first,             # <<<<<<<<<<<<<<
 *             position=pos, name=name)
 *     var: str = parts[0].strip()
*/
        __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Expression_must_be_default_var_v, __pyx_v_first); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 880, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);

        /* "Cython/Tempita/_tempita.py":881
 *         raise TemplateError(
 *             "Expression must be {{default var=value}}; no = found in %r" % first,
 *             position=pos, name=name)             # <<<<<<<<<<<<<<
 *     var: str = parts[0].strip()
 *     if ',' in var:
*/
        __pyx_t_8 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_1);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_1);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_8 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_t_4, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_9 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 879, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_9);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_9 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 879, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_9);
          }
          #endif
          __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 879, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 879, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":878
 *     first = first.split(None, 1)[1]
 *     parts = first.split('=', 1)
 *     if len(parts) == 1:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             "Expression must be {{default var=value}}; no = found in %r" % first,
*/
      }

      /* "Cython/Tempita/_tempita.py":882
 *             "Expression must be {{default var=value}}; no = found in %r" % first,
 *             position=pos, name=name)
 *     var: str = parts[0].strip()             # <<<<<<<<<<<<<<
 *     if ',' in var:
 *         raise TemplateError(
*/
      __pyx_t_9 = __Pyx_GetItemInt_List(__pyx_v_parts, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 882, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (!(likely(PyUnicode_CheckExact(__pyx_t_9))||((__pyx_t_9) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_9))) __PYX_ERR(0, 882, __pyx_L1_error)
      __pyx_t_2 = __pyx_t_9;
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_8 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 882, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 882, __pyx_L1_error)
      __pyx_v_var = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":883
 *             position=pos, name=name)
 *     var: str = parts[0].strip()
 *     if ',' in var:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             "{{default x, y = ...}} is not supported",
*/
      __pyx_t_6 = (__Pyx_UnicodeContainsUCS4(44, __pyx_v_var, Py_EQ)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 883, __pyx_L1_error)
      if (unlikely(__pyx_t_6)) {


        /* "Cython/Tempita/_tempita.py":884
 *     var: str = parts[0].strip()
 *     if ',' in var:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             "{{default x, y = ...}} is not supported",
 *             position=pos, name=name)
*/
        __pyx_t_9 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 884, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);

        /* "Cython/Tempita/_tempita.py":886
 *         raise TemplateError(
 *             "{{default x, y = ...}} is not supported",
 *             position=pos, name=name)             # <<<<<<<<<<<<<<
 *     if not var_re.search(var):
 *         raise TemplateError(
*/
        __pyx_t_8 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_9);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_8 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_9, __pyx_mstate_global->__pyx_kp_u_default_x_y_is_not_supported, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_4 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_4);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_4 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 884, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
          }
          #endif
          __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 884, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 884, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":883
 *             position=pos, name=name)
 *     var: str = parts[0].strip()
 *     if ',' in var:             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             "{{default x, y = ...}} is not supported",
*/
      }

      /* "Cython/Tempita/_tempita.py":887
 *             "{{default x, y = ...}} is not supported",
 *             position=pos, name=name)
 *     if not var_re.search(var):             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             "Not a valid variable name for {{default}}: %r"
*/
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_var_re); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 887, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_search); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 887, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_8 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
        __pyx_t_8 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_var};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 887, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 887, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_10 = (!__pyx_t_6);


      if (unlikely(__pyx_t_10)) {


        /* "Cython/Tempita/_tempita.py":888
 *             position=pos, name=name)
 *     if not var_re.search(var):
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             "Not a valid variable name for {{default}}: %r"
 *             % var, position=pos, name=name)
*/
        __pyx_t_9 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 888, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);

        /* "Cython/Tempita/_tempita.py":890
 *         raise TemplateError(
 *             "Not a valid variable name for {{default}}: %r"
 *             % var, position=pos, name=name)             # <<<<<<<<<<<<<<
 *     expr = parts[1].strip()
 *     return ('default', pos, var, expr), tokens[1:]
*/
        __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Not_a_valid_variable_name_for_de, __pyx_v_var); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 890, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);

        /* "Cython/Tempita/_tempita.py":888
 *             position=pos, name=name)
 *     if not var_re.search(var):
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             "Not a valid variable name for {{default}}: %r"
 *             % var, position=pos, name=name)
*/
        __pyx_t_8 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_9);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_8 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_9, __pyx_t_4, __pyx_v_pos, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_1 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 888, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_1);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_1 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 888, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
          }
          #endif
          __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_1);
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 888, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 888, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":887
 *             "{{default x, y = ...}} is not supported",
 *             position=pos, name=name)
 *     if not var_re.search(var):             # <<<<<<<<<<<<<<
 *         raise TemplateError(
 *             "Not a valid variable name for {{default}}: %r"
*/
      }

      /* "Cython/Tempita/_tempita.py":891
 *             "Not a valid variable name for {{default}}: %r"
 *             % var, position=pos, name=name)
 *     expr = parts[1].strip()             # <<<<<<<<<<<<<<
 *     return ('default', pos, var, expr), tokens[1:]
 * 
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_parts, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_1))) __PYX_ERR(0, 891, __pyx_L1_error)
      __pyx_t_2 = __pyx_t_1;
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_8 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, NULL};
        __pyx_t_3 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_strip, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 891, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 891, __pyx_L1_error)
      __pyx_v_expr = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":892
 *             % var, position=pos, name=name)
 *     expr = parts[1].strip()
 *     return ('default', pos, var, expr), tokens[1:]             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_default);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_default);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_mstate_global->__pyx_n_u_default) != (0)) __PYX_ERR(0, 892, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_pos);
      __Pyx_GIVEREF(__pyx_v_pos);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 892, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_var);
      __Pyx_GIVEREF(__pyx_v_var);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_var) != (0)) __PYX_ERR(0, 892, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_expr);
      __Pyx_GIVEREF(__pyx_v_expr);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_expr) != (0)) __PYX_ERR(0, 892, __pyx_L1_error);
      __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 892, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 892, __pyx_L1_error);
      __pyx_t_3 = 0;
      __pyx_t_1 = 0;
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = ((PyObject*)__pyx_t_2);
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_2 = 0;
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":872
 * 
 * 
 * def parse_default(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_9);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_default", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_first);
      __Pyx_XDECREF(__pyx_v_pos);
      __Pyx_XDECREF(__pyx_v_parts);
      __Pyx_XDECREF(__pyx_v_var);
      __Pyx_XDECREF(__pyx_v_expr);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":895
 * 
 * 
 * def parse_inherit(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_27parse_inherit(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_27parse_inherit = {"parse_inherit", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_27parse_inherit, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_27parse_inherit(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_tokens = 0;
      CYTHON_UNUSED PyObject *__pyx_v_name = 0;
      CYTHON_UNUSED PyObject *__pyx_v_context = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_inherit (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tokens,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_context,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 895, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 895, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 895, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 895, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_inherit", 0) < (0)) __PYX_ERR(0, 895, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_inherit", 1, 3, 3, i); __PYX_ERR(0, 895, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 895, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 895, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 895, __pyx_L3_error)
        }
        __pyx_v_tokens = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_context = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_inherit", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 895, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_inherit", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 895, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_26parse_inherit(__pyx_self, __pyx_v_tokens, __pyx_v_name, __pyx_v_context);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_26parse_inherit(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, CYTHON_UNUSED PyObject *__pyx_v_name, CYTHON_UNUSED PyObject *__pyx_v_context) {
      PyObject *__pyx_v_first = 0;
      PyObject *__pyx_v_pos = NULL;
      PyObject *__pyx_v_expr = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *(*__pyx_t_5)(PyObject *);
      int __pyx_t_6;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_inherit", 0);

      /* "Cython/Tempita/_tempita.py":897
 * def parse_inherit(tokens: list, name, context) -> tuple:
 *     first: str
 *     first, pos = tokens[0]             # <<<<<<<<<<<<<<
 *     assert first.startswith('inherit ')
 *     expr = first.split(None, 1)[1]
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 897, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
        PyObject* sequence = __pyx_t_1;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 897, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_2);
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_3);
        } else {
          __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 897, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
        }
        #else
        __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4);
        index = 0; __pyx_t_2 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_2);
        index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < (0)) __PYX_ERR(0, 897, __pyx_L1_error)
        __pyx_t_5 = NULL;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        goto __pyx_L4_unpacking_done;
        __pyx_L3_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_5 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 897, __pyx_L1_error)
        __pyx_L4_unpacking_done:;
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 897, __pyx_L1_error)
      __pyx_v_first = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;
      __pyx_v_pos = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":898
 *     first: str
 *     first, pos = tokens[0]
 *     assert first.startswith('inherit ')             # <<<<<<<<<<<<<<
 *     expr = first.split(None, 1)[1]
 *     return ('inherit', pos, expr), tokens[1:]
*/
      #ifndef CYTHON_WITHOUT_ASSERTIONS
      if (unlikely(__pyx_assertions_enabled())) {
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "startswith");
          __PYX_ERR(0, 898, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u_inherit_3, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 898, __pyx_L1_error)
        if (unlikely(!__pyx_t_6)) {
          __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
          __PYX_ERR(0, 898, __pyx_L1_error)
        }

      }
      #else
      if ((1)); else __PYX_ERR(0, 898, __pyx_L1_error)
      #endif

      /* "Cython/Tempita/_tempita.py":899
 *     first, pos = tokens[0]
 *     assert first.startswith('inherit ')
 *     expr = first.split(None, 1)[1]             # <<<<<<<<<<<<<<
 *     return ('inherit', pos, expr), tokens[1:]
 * 
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "split");
        __PYX_ERR(0, 899, __pyx_L1_error)
      }
      __pyx_t_1 = PyUnicode_Split(__pyx_v_first, ((PyObject *)NULL), 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 899, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!(likely(PyList_CheckExact(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 899, __pyx_L1_error)
      __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_t_1, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 899, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 899, __pyx_L1_error)
      __pyx_v_expr = ((PyObject*)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":900
 *     assert first.startswith('inherit ')
 *     expr = first.split(None, 1)[1]
 *     return ('inherit', pos, expr), tokens[1:]             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 900, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_inherit_2);
      __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_inherit_2);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_mstate_global->__pyx_n_u_inherit_2) != (0)) __PYX_ERR(0, 900, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_pos);
      __Pyx_GIVEREF(__pyx_v_pos);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_pos) != (0)) __PYX_ERR(0, 900, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_expr);
      __Pyx_GIVEREF(__pyx_v_expr);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_expr) != (0)) __PYX_ERR(0, 900, __pyx_L1_error);
      __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 900, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 900, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_3);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3) != (0)) __PYX_ERR(0, 900, __pyx_L1_error);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 900, __pyx_L1_error);
      __pyx_t_3 = 0;
      __pyx_t_1 = 0;
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = ((PyObject*)__pyx_t_2);
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_2 = 0;
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":895
 * 
 * 
 * def parse_inherit(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_inherit", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_first);
      __Pyx_XDECREF(__pyx_v_pos);
      __Pyx_XDECREF(__pyx_v_expr);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":903
 * 
 * 
 * def parse_def(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, start = tokens[0]
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_29parse_def(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_29parse_def = {"parse_def", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_29parse_def, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_29parse_def(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_tokens = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_context = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_def (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_tokens,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_context,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 903, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 903, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 903, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 903, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_def", 0) < (0)) __PYX_ERR(0, 903, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_def", 1, 3, 3, i); __PYX_ERR(0, 903, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 903, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 903, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 903, __pyx_L3_error)
        }
        __pyx_v_tokens = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_context = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_def", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 903, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_def", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_tokens), (&PyList_Type), 0, "tokens", 2))) __PYX_ERR(0, 903, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_28parse_def(__pyx_self, __pyx_v_tokens, __pyx_v_name, __pyx_v_context);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_28parse_def(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_tokens, PyObject *__pyx_v_name, PyObject *__pyx_v_context) {
      PyObject *__pyx_v_first = 0;
      PyObject *__pyx_v_start = NULL;
      PyObject *__pyx_v_func_name = NULL;
      PyObject *__pyx_v_sig = NULL;
      PyObject *__pyx_v_sig_text = NULL;
      PyObject *__pyx_v_content = NULL;
      PyObject *__pyx_v_next_chunk = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *(*__pyx_t_5)(PyObject *);
      int __pyx_t_6;
      int __pyx_t_7;
      size_t __pyx_t_8;
      PyObject *__pyx_t_9 = NULL;
      int __pyx_t_10;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_def", 0);
      __Pyx_INCREF(__pyx_v_tokens);
      __Pyx_INCREF(__pyx_v_context);

      /* "Cython/Tempita/_tempita.py":905
 * def parse_def(tokens: list, name, context) -> tuple:
 *     first: str
 *     first, start = tokens[0]             # <<<<<<<<<<<<<<
 *     tokens = tokens[1:]
 *     assert first.startswith('def ')
*/
      __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 905, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
        PyObject* sequence = __pyx_t_1;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 905, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_2);
          __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_3);
        } else {
          __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 905, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 905, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_3);
        }
        #else
        __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 905, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 905, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 905, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_4);
        index = 0; __pyx_t_2 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_2);
        index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_3);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < (0)) __PYX_ERR(0, 905, __pyx_L1_error)
        __pyx_t_5 = NULL;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        goto __pyx_L4_unpacking_done;
        __pyx_L3_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_5 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 905, __pyx_L1_error)
        __pyx_L4_unpacking_done:;
      }
      if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 905, __pyx_L1_error)
      __pyx_v_first = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;
      __pyx_v_start = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":906
 *     first: str
 *     first, start = tokens[0]
 *     tokens = tokens[1:]             # <<<<<<<<<<<<<<
 *     assert first.startswith('def ')
 *     first = first.split(None, 1)[1]
*/
      __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 906, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_tokens, ((PyObject*)__pyx_t_1));
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":907
 *     first, start = tokens[0]
 *     tokens = tokens[1:]
 *     assert first.startswith('def ')             # <<<<<<<<<<<<<<
 *     first = first.split(None, 1)[1]
 *     if first.endswith(':'):
*/
      #ifndef CYTHON_WITHOUT_ASSERTIONS
      if (unlikely(__pyx_assertions_enabled())) {
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "startswith");
          __PYX_ERR(0, 907, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u_def_2, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 907, __pyx_L1_error)
        if (unlikely(!__pyx_t_6)) {
          __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
          __PYX_ERR(0, 907, __pyx_L1_error)
        }

      }
      #else
      if ((1)); else __PYX_ERR(0, 907, __pyx_L1_error)
      #endif

      /* "Cython/Tempita/_tempita.py":908
 *     tokens = tokens[1:]
 *     assert first.startswith('def ')
 *     first = first.split(None, 1)[1]             # <<<<<<<<<<<<<<
 *     if first.endswith(':'):
 *         first = first[:-1]
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "split");
        __PYX_ERR(0, 908, __pyx_L1_error)
      }
      __pyx_t_1 = PyUnicode_Split(__pyx_v_first, ((PyObject *)NULL), 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 908, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!(likely(PyList_CheckExact(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 908, __pyx_L1_error)
      __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_t_1, 1, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_SharedReference); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 908, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 908, __pyx_L1_error)
      __Pyx_DECREF_SET(__pyx_v_first, ((PyObject*)__pyx_t_3));
      __pyx_t_3 = 0;

      /* "Cython/Tempita/_tempita.py":909
 *     assert first.startswith('def ')
 *     first = first.split(None, 1)[1]
 *     if first.endswith(':'):             # <<<<<<<<<<<<<<
 *         first = first[:-1]
 *     if '(' not in first:
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "endswith");
        __PYX_ERR(0, 909, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u__9, 0, PY_SSIZE_T_MAX, 1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 909, __pyx_L1_error)
      if (__pyx_t_6) {


        /* "Cython/Tempita/_tempita.py":910
 *     first = first.split(None, 1)[1]
 *     if first.endswith(':'):
 *         first = first[:-1]             # <<<<<<<<<<<<<<
 *     if '(' not in first:
 *         func_name = first
*/
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 910, __pyx_L1_error)
        }
        __pyx_t_3 = __Pyx_PyUnicode_Substring(__pyx_v_first, 0, -1L); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 910, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF_SET(__pyx_v_first, ((PyObject*)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":909
 *     assert first.startswith('def ')
 *     first = first.split(None, 1)[1]
 *     if first.endswith(':'):             # <<<<<<<<<<<<<<
 *         first = first[:-1]
 *     if '(' not in first:
*/
      }

      /* "Cython/Tempita/_tempita.py":911
 *     if first.endswith(':'):
 *         first = first[:-1]
 *     if '(' not in first:             # <<<<<<<<<<<<<<
 *         func_name = first
 *         sig = ((), None, None, {})
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "argument of type \047NoneType\047 is not iterable");
        __PYX_ERR(0, 911, __pyx_L1_error)
      }
      __pyx_t_6 = (__Pyx_UnicodeContainsUCS4(40, __pyx_v_first, Py_NE)); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 911, __pyx_L1_error)
      if (__pyx_t_6) {


        /* "Cython/Tempita/_tempita.py":912
 *         first = first[:-1]
 *     if '(' not in first:
 *         func_name = first             # <<<<<<<<<<<<<<
 *         sig = ((), None, None, {})
 *     elif not first.endswith(')'):
*/
        __Pyx_INCREF(__pyx_v_first);
        __pyx_v_func_name = __pyx_v_first;

        /* "Cython/Tempita/_tempita.py":913
 *     if '(' not in first:
 *         func_name = first
 *         sig = ((), None, None, {})             # <<<<<<<<<<<<<<
 *     elif not first.endswith(')'):
 *         raise TemplateError("Function definition doesn't end with ): %s" % first,
*/
        __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 913, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 913, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_mstate_global->__pyx_empty_tuple);
        __Pyx_GIVEREF(__pyx_mstate_global->__pyx_empty_tuple);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_mstate_global->__pyx_empty_tuple) != (0)) __PYX_ERR(0, 913, __pyx_L1_error);
        __Pyx_INCREF(Py_None);
        __Pyx_GIVEREF(Py_None);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None) != (0)) __PYX_ERR(0, 913, __pyx_L1_error);
        __Pyx_INCREF(Py_None);
        __Pyx_GIVEREF(Py_None);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None) != (0)) __PYX_ERR(0, 913, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_3);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_3) != (0)) __PYX_ERR(0, 913, __pyx_L1_error);
        __pyx_t_3 = 0;
        __pyx_v_sig = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "Cython/Tempita/_tempita.py":911
 *     if first.endswith(':'):
 *         first = first[:-1]
 *     if '(' not in first:             # <<<<<<<<<<<<<<
 *         func_name = first
 *         sig = ((), None, None, {})
*/
        goto __pyx_L6;
      }

      /* "Cython/Tempita/_tempita.py":914
 *         func_name = first
 *         sig = ((), None, None, {})
 *     elif not first.endswith(')'):             # <<<<<<<<<<<<<<
 *         raise TemplateError("Function definition doesn't end with ): %s" % first,
 *                             position=start, name=name)
*/
      if (unlikely(__pyx_v_first == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "\047NoneType\047 object has no attribute \047%.30s\047", "endswith");
        __PYX_ERR(0, 914, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyUnicode_Tailmatch(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u__16, 0, PY_SSIZE_T_MAX, 1); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 914, __pyx_L1_error)
      __pyx_t_7 = (!__pyx_t_6);


      if (unlikely(__pyx_t_7)) {


        /* "Cython/Tempita/_tempita.py":915
 *         sig = ((), None, None, {})
 *     elif not first.endswith(')'):
 *         raise TemplateError("Function definition doesn't end with ): %s" % first,             # <<<<<<<<<<<<<<
 *                             position=start, name=name)
 *     else:
*/
        __pyx_t_3 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 915, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Function_definition_doesn_t_end, __pyx_v_first); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 915, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);

        /* "Cython/Tempita/_tempita.py":916
 *     elif not first.endswith(')'):
 *         raise TemplateError("Function definition doesn't end with ): %s" % first,
 *                             position=start, name=name)             # <<<<<<<<<<<<<<
 *     else:
 *         first = first[:-1]
*/
        __pyx_t_8 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_3);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_8 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_t_4, __pyx_v_start, __pyx_v_name};
          #if CYTHON_VECTORCALL
          __pyx_t_9 = __pyx_mstate_global->__pyx_tuple[5];
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 915, __pyx_L1_error)
          __Pyx_INCREF(__pyx_t_9);
          #else
          {
            PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
            __pyx_t_9 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 915, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_9);
          }
          #endif
          __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_9);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 915, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        __Pyx_Raise(__pyx_t_1, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __PYX_ERR(0, 915, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":914
 *         func_name = first
 *         sig = ((), None, None, {})
 *     elif not first.endswith(')'):             # <<<<<<<<<<<<<<
 *         raise TemplateError("Function definition doesn't end with ): %s" % first,
 *                             position=start, name=name)
*/
      }

      /* "Cython/Tempita/_tempita.py":918
 *                             position=start, name=name)
 *     else:
 *         first = first[:-1]             # <<<<<<<<<<<<<<
 *         func_name, sig_text = first.split('(', 1)
 *         sig = parse_signature(sig_text, name, start)
*/
      /*else*/ {
        if (unlikely(__pyx_v_first == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 918, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyUnicode_Substring(__pyx_v_first, 0, -1L); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF_SET(__pyx_v_first, ((PyObject*)__pyx_t_1));
        __pyx_t_1 = 0;

        /* "Cython/Tempita/_tempita.py":919
 *     else:
 *         first = first[:-1]
 *         func_name, sig_text = first.split('(', 1)             # <<<<<<<<<<<<<<
 *         sig = parse_signature(sig_text, name, start)
 *     context = context + ('def',)
*/
        __pyx_t_1 = PyUnicode_Split(__pyx_v_first, __pyx_mstate_global->__pyx_kp_u__8, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 919, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (!(likely(PyList_CheckExact(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 919, __pyx_L1_error)
        if (1) {
          PyObject* sequence = __pyx_t_1;
          Py_ssize_t size = __Pyx_PyList_GET_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 919, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 919, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_9 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 919, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_9);
          #else
          __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 919, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 919, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          #endif
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        }
        if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 919, __pyx_L1_error)
        if (!(likely(PyUnicode_CheckExact(__pyx_t_9))||((__pyx_t_9) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_9))) __PYX_ERR(0, 919, __pyx_L1_error)
        __pyx_v_func_name = ((PyObject*)__pyx_t_2);
        __pyx_t_2 = 0;
        __pyx_v_sig_text = ((PyObject*)__pyx_t_9);
        __pyx_t_9 = 0;

        /* "Cython/Tempita/_tempita.py":920
 *         first = first[:-1]
 *         func_name, sig_text = first.split('(', 1)
 *         sig = parse_signature(sig_text, name, start)             # <<<<<<<<<<<<<<
 *     context = context + ('def',)
 *     content = []
*/
        __pyx_t_9 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_parse_signature_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 920, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_8 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
          assert(__pyx_t_9);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
          __Pyx_INCREF(__pyx_t_9);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
          __pyx_t_8 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_9, __pyx_v_sig_text, __pyx_v_name, __pyx_v_start};
          __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_8, (4-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 920, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        __pyx_v_sig = __pyx_t_1;
        __pyx_t_1 = 0;
      }
      __pyx_L6:;

      /* "Cython/Tempita/_tempita.py":921
 *         func_name, sig_text = first.split('(', 1)
 *         sig = parse_signature(sig_text, name, start)
 *     context = context + ('def',)             # <<<<<<<<<<<<<<
 *     content = []
 *     while 1:
*/
      __pyx_t_1 = PyNumber_Add(__pyx_v_context, __pyx_mstate_global->__pyx_tuple[13]); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 921, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_context, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":922
 *         sig = parse_signature(sig_text, name, start)
 *     context = context + ('def',)
 *     content = []             # <<<<<<<<<<<<<<
 *     while 1:
 *         if not tokens:
*/
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 922, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_content = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":923
 *     context = context + ('def',)
 *     content = []
 *     while 1:             # <<<<<<<<<<<<<<
 *         if not tokens:
 *             raise TemplateError(
*/
      while (1) {

        /* "Cython/Tempita/_tempita.py":924
 *     content = []
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'Missing {{enddef}}',
*/
        if (__pyx_v_tokens == Py_None) __pyx_t_7 = 0;
        else
        {
          Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_tokens);
          if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 924, __pyx_L1_error)
          __pyx_t_7 = (__pyx_temp != 0);
        }

        __pyx_t_6 = (!__pyx_t_7);


        if (unlikely(__pyx_t_6)) {


          /* "Cython/Tempita/_tempita.py":925
 *     while 1:
 *         if not tokens:
 *             raise TemplateError(             # <<<<<<<<<<<<<<
 *                 'Missing {{enddef}}',
 *                 position=start, name=name)
*/
          __pyx_t_2 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 925, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);

          /* "Cython/Tempita/_tempita.py":927
 *             raise TemplateError(
 *                 'Missing {{enddef}}',
 *                 position=start, name=name)             # <<<<<<<<<<<<<<
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'enddef'):
*/
          __pyx_t_8 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_9))) {
            __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_9);
            assert(__pyx_t_2);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
            __Pyx_INCREF(__pyx_t_2);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
            __pyx_t_8 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_Missing_enddef, __pyx_v_start, __pyx_v_name};
            #if CYTHON_VECTORCALL
            __pyx_t_4 = __pyx_mstate_global->__pyx_tuple[5];
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 925, __pyx_L1_error)
            __Pyx_INCREF(__pyx_t_4);
            #else
            {
              PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
              __pyx_t_4 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 925, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
            }
            #endif
            __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (2-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
          }
          __Pyx_Raise(__pyx_t_1, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __PYX_ERR(0, 925, __pyx_L1_error)

          /* "Cython/Tempita/_tempita.py":924
 *     content = []
 *     while 1:
 *         if not tokens:             # <<<<<<<<<<<<<<
 *             raise TemplateError(
 *                 'Missing {{enddef}}',
*/
        }

        /* "Cython/Tempita/_tempita.py":928
 *                 'Missing {{enddef}}',
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'enddef'):
 *             return ('def', start, func_name, sig, content), tokens[1:]
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 928, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 928, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_7 = PyTuple_Check(__pyx_t_1); 
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (__pyx_t_7) {

        } else {

          __pyx_t_6 = __pyx_t_7;

          goto __pyx_L11_bool_binop_done;
        }

        /* "Cython/Tempita/_tempita.py":929
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'enddef'):             # <<<<<<<<<<<<<<
 *             return ('def', start, func_name, sig, content), tokens[1:]
 *         next_chunk, tokens = parse_expr(tokens, name, context)
*/
        if (unlikely(__pyx_v_tokens == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 929, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_GetItemInt_List(__pyx_v_tokens, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_9 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 929, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_7 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_enddef, Py_EQ); if (unlikely((__pyx_t_7 < 0))) __PYX_ERR(0, 929, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

        __pyx_t_6 = __pyx_t_7;

        __pyx_L11_bool_binop_done:;

        /* "Cython/Tempita/_tempita.py":928
 *                 'Missing {{enddef}}',
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'enddef'):
 *             return ('def', start, func_name, sig, content), tokens[1:]
*/
        if (__pyx_t_6) {


          /* "Cython/Tempita/_tempita.py":930
 *         if (isinstance(tokens[0], tuple)
 *                 and tokens[0][0] == 'enddef'):
 *             return ('def', start, func_name, sig, content), tokens[1:]             # <<<<<<<<<<<<<<
 *         next_chunk, tokens = parse_expr(tokens, name, context)
 *         content.append(next_chunk)
*/
          __pyx_t_9 = PyTuple_New(5); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 930, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_INCREF(__pyx_mstate_global->__pyx_n_u_def);
          __Pyx_GIVEREF(__pyx_mstate_global->__pyx_n_u_def);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_mstate_global->__pyx_n_u_def) != (0)) __PYX_ERR(0, 930, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_start);
          __Pyx_GIVEREF(__pyx_v_start);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_start) != (0)) __PYX_ERR(0, 930, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_func_name);
          __Pyx_GIVEREF(__pyx_v_func_name);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_func_name) != (0)) __PYX_ERR(0, 930, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_sig);
          __Pyx_GIVEREF(__pyx_v_sig);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_v_sig) != (0)) __PYX_ERR(0, 930, __pyx_L1_error);
          __Pyx_INCREF(__pyx_v_content);
          __Pyx_GIVEREF(__pyx_v_content);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 4, __pyx_v_content) != (0)) __PYX_ERR(0, 930, __pyx_L1_error);
          if (unlikely(__pyx_v_tokens == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
            __PYX_ERR(0, 930, __pyx_L1_error)
          }
          __pyx_t_1 = __Pyx_PyList_GetSlice(__pyx_v_tokens, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 930, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 930, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_GIVEREF(__pyx_t_9);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9) != (0)) __PYX_ERR(0, 930, __pyx_L1_error);
          __Pyx_GIVEREF(__pyx_t_1);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1) != (0)) __PYX_ERR(0, 930, __pyx_L1_error);
          __pyx_t_9 = 0;
          __pyx_t_1 = 0;
          {
            PyObject *__pyx_temp;
            {
              __pyx_temp = __pyx_r;
              __pyx_r = ((PyObject*)__pyx_t_4);
            }
            __Pyx_XDECREF(__pyx_temp);
          }
          __pyx_t_4 = 0;
          goto __pyx_L0;

          /* "Cython/Tempita/_tempita.py":928
 *                 'Missing {{enddef}}',
 *                 position=start, name=name)
 *         if (isinstance(tokens[0], tuple)             # <<<<<<<<<<<<<<
 *                 and tokens[0][0] == 'enddef'):
 *             return ('def', start, func_name, sig, content), tokens[1:]
*/
        }

        /* "Cython/Tempita/_tempita.py":931
 *                 and tokens[0][0] == 'enddef'):
 *             return ('def', start, func_name, sig, content), tokens[1:]
 *         next_chunk, tokens = parse_expr(tokens, name, context)             # <<<<<<<<<<<<<<
 *         content.append(next_chunk)
 * 
*/
        __pyx_t_1 = NULL;
        __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_parse_expr); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 931, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __pyx_t_8 = 1;
        #if CYTHON_UNPACK_METHODS
        if (unlikely(PyMethod_Check(__pyx_t_9))) {
          __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9);
          assert(__pyx_t_1);
          PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_1);
          __Pyx_INCREF(__pyx__function);
          __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
          __pyx_t_8 = 0;
        }
        #endif
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_v_tokens, __pyx_v_name, __pyx_v_context};
          __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_8, (4-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 931, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
          PyObject* sequence = __pyx_t_4;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 931, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_9 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_9);
            __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_1);
          } else {
            __pyx_t_9 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 931, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_9);
            __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_1);
          }
          #else
          __pyx_t_9 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 931, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_2 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 931, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_5 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2);
          index = 0; __pyx_t_9 = __pyx_t_5(__pyx_t_2); if (unlikely(!__pyx_t_9)) goto __pyx_L13_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_9);
          index = 1; __pyx_t_1 = __pyx_t_5(__pyx_t_2); if (unlikely(!__pyx_t_1)) goto __pyx_L13_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_1);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_2), 2) < (0)) __PYX_ERR(0, 931, __pyx_L1_error)
          __pyx_t_5 = NULL;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          goto __pyx_L14_unpacking_done;
          __pyx_L13_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_5 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 931, __pyx_L1_error)
          __pyx_L14_unpacking_done:;
        }
        if (!(likely(PyList_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 931, __pyx_L1_error)
        __Pyx_XDECREF_SET(__pyx_v_next_chunk, __pyx_t_9);
        __pyx_t_9 = 0;
        __Pyx_DECREF_SET(__pyx_v_tokens, ((PyObject*)__pyx_t_1));
        __pyx_t_1 = 0;

        /* "Cython/Tempita/_tempita.py":932
 *             return ('def', start, func_name, sig, content), tokens[1:]
 *         next_chunk, tokens = parse_expr(tokens, name, context)
 *         content.append(next_chunk)             # <<<<<<<<<<<<<<
 * 
 * 
*/
        __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_content, __pyx_v_next_chunk); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 932, __pyx_L1_error)

      }

      /* "Cython/Tempita/_tempita.py":903
 * 
 * 
 * def parse_def(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, start = tokens[0]
*/

      /* function exit code */
      __pyx_r = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
      goto __pyx_L0;
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_9);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_def", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_first);
      __Pyx_XDECREF(__pyx_v_start);
      __Pyx_XDECREF(__pyx_v_func_name);
      __Pyx_XDECREF(__pyx_v_sig);
      __Pyx_XDECREF(__pyx_v_sig_text);
      __Pyx_XDECREF(__pyx_v_content);
      __Pyx_XDECREF(__pyx_v_next_chunk);
      __Pyx_XDECREF(__pyx_v_tokens);
      __Pyx_XDECREF(__pyx_v_context);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":935
 * 
 * 
 * def parse_signature(sig_text: str, name, pos) -> tuple:             # <<<<<<<<<<<<<<
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)
 *     sig_args = []
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_31parse_signature(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_31parse_signature = {"parse_signature", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_31parse_signature, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_31parse_signature(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_sig_text = 0;
      PyObject *__pyx_v_name = 0;
      PyObject *__pyx_v_pos = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("parse_signature (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_sig_text,&__pyx_mstate_global->__pyx_n_u_name,&__pyx_mstate_global->__pyx_n_u_pos,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 935, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 935, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 935, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 935, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "parse_signature", 0) < (0)) __PYX_ERR(0, 935, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("parse_signature", 1, 3, 3, i); __PYX_ERR(0, 935, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 935, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 935, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 935, __pyx_L3_error)
        }
        __pyx_v_sig_text = ((PyObject*)values[0]);
        __pyx_v_name = values[1];
        __pyx_v_pos = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("parse_signature", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 935, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_signature", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_sig_text), (&PyUnicode_Type), 0, "sig_text", 2))) __PYX_ERR(0, 935, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_30parse_signature(__pyx_self, __pyx_v_sig_text, __pyx_v_name, __pyx_v_pos);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":942
 *     defaults = {}
 * 
 *     def get_token(pos=False) -> tuple:             # <<<<<<<<<<<<<<
 *         try:
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_15parse_signature_1get_token(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_15parse_signature_1get_token = {"get_token", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_15parse_signature_1get_token, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_15parse_signature_1get_token(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_pos = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[1] = {0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("get_token (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pos,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 942, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 942, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "get_token", 0) < (0)) __PYX_ERR(0, 942, __pyx_L3_error)
          if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_False)));
        } else {
          switch (__pyx_nargs) {
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 942, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)((PyObject*)Py_False)));
        }
        __pyx_v_pos = values[0];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("get_token", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 942, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_signature.get_token", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_15parse_signature_get_token(__pyx_self, __pyx_v_pos);

      /* function exit code */
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_15parse_signature_get_token(PyObject *__pyx_self, PyObject *__pyx_v_pos) {
      struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *__pyx_cur_scope;
      struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *__pyx_outer_scope;
      PyObject *__pyx_v_tok_type = NULL;
      PyObject *__pyx_v_tok_string = NULL;
      PyObject *__pyx_v_srow = NULL;
      PyObject *__pyx_v_scol = NULL;
      PyObject *__pyx_v_erow = NULL;
      PyObject *__pyx_v_ecol = NULL;
      CYTHON_UNUSED PyObject *__pyx_v_line = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *__pyx_t_5 = NULL;
      PyObject *__pyx_t_6 = NULL;
      PyObject *__pyx_t_7 = NULL;
      PyObject *__pyx_t_8 = NULL;
      PyObject *__pyx_t_9 = NULL;
      PyObject *__pyx_t_10 = NULL;
      PyObject *(*__pyx_t_11)(PyObject *);
      PyObject *__pyx_t_12 = NULL;
      PyObject *__pyx_t_13 = NULL;
      int __pyx_t_14;
      int __pyx_t_15;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("get_token", 0);
      __pyx_outer_scope = (struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *) __Pyx_CyFunction_GetClosure(__pyx_self);
      __pyx_cur_scope = __pyx_outer_scope;

      /* "Cython/Tempita/_tempita.py":943
 * 
 *     def get_token(pos=False) -> tuple:
 *         try:             # <<<<<<<<<<<<<<
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
 *         except StopIteration:
*/
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
        __Pyx_XGOTREF(__pyx_t_1);
        __Pyx_XGOTREF(__pyx_t_2);
        __Pyx_XGOTREF(__pyx_t_3);
        /*try:*/ {

          /* "Cython/Tempita/_tempita.py":944
 *     def get_token(pos=False) -> tuple:
 *         try:
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)             # <<<<<<<<<<<<<<
 *         except StopIteration:
 *             return tokenize.ENDMARKER, ''
*/
          if (unlikely(!__pyx_cur_scope->__pyx_v_tokens)) { __Pyx_RaiseClosureNameError("tokens"); __PYX_ERR(0, 944, __pyx_L3_error) }
          __pyx_t_4 = __pyx_cur_scope->__pyx_v_tokens;
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_5 = __Pyx_PyIter_Next(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 944, __pyx_L3_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
            PyObject* sequence = __pyx_t_5;
            Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
            if (unlikely(size != 5)) {
              if (size > 5) __Pyx_RaiseTooManyValuesError(5);
              else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
              __PYX_ERR(0, 944, __pyx_L3_error)
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            if (likely(PyTuple_CheckExact(sequence))) {
              __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
              __Pyx_INCREF(__pyx_t_4);
              __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
              __Pyx_INCREF(__pyx_t_6);
              __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2);
              __Pyx_INCREF(__pyx_t_7);
              __pyx_t_8 = PyTuple_GET_ITEM(sequence, 3);
              __Pyx_INCREF(__pyx_t_8);
              __pyx_t_9 = PyTuple_GET_ITEM(sequence, 4);
              __Pyx_INCREF(__pyx_t_9);
            } else {
              __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_4);
              __pyx_t_6 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_6);
              __pyx_t_7 = __Pyx_PyList_GET_ITEM_REF(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_7);
              __pyx_t_8 = __Pyx_PyList_GET_ITEM_REF(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_8);
              __pyx_t_9 = __Pyx_PyList_GET_ITEM_REF(sequence, 4, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_9);
            }
            #else
            {
              Py_ssize_t i;
              PyObject** temps[5] = {&__pyx_t_4,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
              for (i=0; i < 5; i++) {
                PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 944, __pyx_L3_error)
                __Pyx_GOTREF(item);
                *(temps[i]) = item;
              }
            }
            #endif
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          } else {
            Py_ssize_t index = -1;
            PyObject** temps[5] = {&__pyx_t_4,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9};
            __pyx_t_10 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 944, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_10);
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_10);
            for (index=0; index < 5; index++) {
              PyObject* item = __pyx_t_11(__pyx_t_10); if (unlikely(!item)) goto __pyx_L9_unpacking_failed;
              __Pyx_GOTREF(item);
              *(temps[index]) = item;
            }
            if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 5) < (0)) __PYX_ERR(0, 944, __pyx_L3_error)
            __pyx_t_11 = NULL;
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
            goto __pyx_L10_unpacking_done;
            __pyx_L9_unpacking_failed:;
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
            __pyx_t_11 = NULL;
            if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
            __PYX_ERR(0, 944, __pyx_L3_error)
            __pyx_L10_unpacking_done:;
          }
          __pyx_v_tok_type = __pyx_t_4;
          __pyx_t_4 = 0;
          __pyx_v_tok_string = __pyx_t_6;
          __pyx_t_6 = 0;
          if ((likely(PyTuple_CheckExact(__pyx_t_7))) || (PyList_CheckExact(__pyx_t_7))) {
            PyObject* sequence = __pyx_t_7;
            Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
            if (unlikely(size != 2)) {
              if (size > 2) __Pyx_RaiseTooManyValuesError(2);
              else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
              __PYX_ERR(0, 944, __pyx_L3_error)
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            if (likely(PyTuple_CheckExact(sequence))) {
              __pyx_t_10 = PyTuple_GET_ITEM(sequence, 0);
              __Pyx_INCREF(__pyx_t_10);
              __pyx_t_12 = PyTuple_GET_ITEM(sequence, 1);
              __Pyx_INCREF(__pyx_t_12);
            } else {
              __pyx_t_10 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_10);
              __pyx_t_12 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_12);
            }
            #else
            __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 944, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_10);
            __pyx_t_12 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 944, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_12);
            #endif
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          } else {
            Py_ssize_t index = -1;
            __pyx_t_13 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 944, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13);
            index = 0; __pyx_t_10 = __pyx_t_11(__pyx_t_13); if (unlikely(!__pyx_t_10)) goto __pyx_L11_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_10);
            index = 1; __pyx_t_12 = __pyx_t_11(__pyx_t_13); if (unlikely(!__pyx_t_12)) goto __pyx_L11_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_12);
            if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_13), 2) < (0)) __PYX_ERR(0, 944, __pyx_L3_error)
            __pyx_t_11 = NULL;
            __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            goto __pyx_L12_unpacking_done;
            __pyx_L11_unpacking_failed:;
            __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            __pyx_t_11 = NULL;
            if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
            __PYX_ERR(0, 944, __pyx_L3_error)
            __pyx_L12_unpacking_done:;
          }
          __pyx_v_srow = __pyx_t_10;
          __pyx_t_10 = 0;
          __pyx_v_scol = __pyx_t_12;
          __pyx_t_12 = 0;
          if ((likely(PyTuple_CheckExact(__pyx_t_8))) || (PyList_CheckExact(__pyx_t_8))) {
            PyObject* sequence = __pyx_t_8;
            Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
            if (unlikely(size != 2)) {
              if (size > 2) __Pyx_RaiseTooManyValuesError(2);
              else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
              __PYX_ERR(0, 944, __pyx_L3_error)
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            if (likely(PyTuple_CheckExact(sequence))) {
              __pyx_t_12 = PyTuple_GET_ITEM(sequence, 0);
              __Pyx_INCREF(__pyx_t_12);
              __pyx_t_10 = PyTuple_GET_ITEM(sequence, 1);
              __Pyx_INCREF(__pyx_t_10);
            } else {
              __pyx_t_12 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_12);
              __pyx_t_10 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 944, __pyx_L3_error)
              __Pyx_XGOTREF(__pyx_t_10);
            }
            #else
            __pyx_t_12 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 944, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_10 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 944, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_10);
            #endif
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          } else {
            Py_ssize_t index = -1;
            __pyx_t_13 = PyObject_GetIter(__pyx_t_8); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 944, __pyx_L3_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
            __pyx_t_11 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_13);
            index = 0; __pyx_t_12 = __pyx_t_11(__pyx_t_13); if (unlikely(!__pyx_t_12)) goto __pyx_L13_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_12);
            index = 1; __pyx_t_10 = __pyx_t_11(__pyx_t_13); if (unlikely(!__pyx_t_10)) goto __pyx_L13_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_10);
            if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_13), 2) < (0)) __PYX_ERR(0, 944, __pyx_L3_error)
            __pyx_t_11 = NULL;
            __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            goto __pyx_L14_unpacking_done;
            __pyx_L13_unpacking_failed:;
            __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            __pyx_t_11 = NULL;
            if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
            __PYX_ERR(0, 944, __pyx_L3_error)
            __pyx_L14_unpacking_done:;
          }
          __pyx_v_erow = __pyx_t_12;
          __pyx_t_12 = 0;
          __pyx_v_ecol = __pyx_t_10;
          __pyx_t_10 = 0;
          __pyx_v_line = __pyx_t_9;
          __pyx_t_9 = 0;

          /* "Cython/Tempita/_tempita.py":943
 * 
 *     def get_token(pos=False) -> tuple:
 *         try:             # <<<<<<<<<<<<<<
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
 *         except StopIteration:
*/
        }
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        goto __pyx_L8_try_end;
        __pyx_L3_error:;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
        __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

        /* "Cython/Tempita/_tempita.py":945
 *         try:
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
 *         except StopIteration:             # <<<<<<<<<<<<<<
 *             return tokenize.ENDMARKER, ''
 *         if pos:
*/
        __pyx_t_14 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(((PyTypeObject*)PyExc_StopIteration))));
        if (__pyx_t_14) {
          __Pyx_AddTraceback("Cython.Tempita._tempita.parse_signature.get_token", __pyx_clineno, __pyx_lineno, __pyx_filename);
          if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_9, &__pyx_t_8) < 0) __PYX_ERR(0, 945, __pyx_L5_except_error)
          __Pyx_XGOTREF(__pyx_t_5);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_8);

          /* "Cython/Tempita/_tempita.py":946
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
 *         except StopIteration:
 *             return tokenize.ENDMARKER, ''             # <<<<<<<<<<<<<<
 *         if pos:
 *             return tok_type, tok_string, (srow, scol), (erow, ecol)
*/
          __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 946, __pyx_L5_except_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_ENDMARKER); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 946, __pyx_L5_except_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 946, __pyx_L5_except_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_GIVEREF(__pyx_t_6);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6) != (0)) __PYX_ERR(0, 946, __pyx_L5_except_error);
          __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u__5);
          __Pyx_GIVEREF(__pyx_mstate_global->__pyx_kp_u__5);
          if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_mstate_global->__pyx_kp_u__5) != (0)) __PYX_ERR(0, 946, __pyx_L5_except_error);
          __pyx_t_6 = 0;
          {
            PyObject *__pyx_temp;
            {
              __pyx_temp = __pyx_r;
              __pyx_r = ((PyObject*)__pyx_t_7);
            }
            __Pyx_XDECREF(__pyx_temp);
          }
          __pyx_t_7 = 0;
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          goto __pyx_L6_except_return;
        }
        goto __pyx_L5_except_error;

        /* "Cython/Tempita/_tempita.py":943
 * 
 *     def get_token(pos=False) -> tuple:
 *         try:             # <<<<<<<<<<<<<<
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
 *         except StopIteration:
*/
        __pyx_L5_except_error:;
        __Pyx_XGIVEREF(__pyx_t_1);
        __Pyx_XGIVEREF(__pyx_t_2);
        __Pyx_XGIVEREF(__pyx_t_3);
        __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
        goto __pyx_L1_error;
        __pyx_L6_except_return:;
        __Pyx_XGIVEREF(__pyx_t_1);
        __Pyx_XGIVEREF(__pyx_t_2);
        __Pyx_XGIVEREF(__pyx_t_3);
        __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
        goto __pyx_L0;
        __pyx_L8_try_end:;
      }

      /* "Cython/Tempita/_tempita.py":947
 *         except StopIteration:
 *             return tokenize.ENDMARKER, ''
 *         if pos:             # <<<<<<<<<<<<<<
 *             return tok_type, tok_string, (srow, scol), (erow, ecol)
 *         else:
*/
      __pyx_t_15 = __Pyx_PyObject_IsTrue(__pyx_v_pos); if (unlikely((__pyx_t_15 < 0))) __PYX_ERR(0, 947, __pyx_L1_error)
      if (__pyx_t_15) {


        /* "Cython/Tempita/_tempita.py":948
 *             return tokenize.ENDMARKER, ''
 *         if pos:
 *             return tok_type, tok_string, (srow, scol), (erow, ecol)             # <<<<<<<<<<<<<<
 *         else:
 *             return tok_type, tok_string
*/
        __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 948, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_INCREF(__pyx_v_srow);
        __Pyx_GIVEREF(__pyx_v_srow);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_srow) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_scol);
        __Pyx_GIVEREF(__pyx_v_scol);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_scol) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 948, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_INCREF(__pyx_v_erow);
        __Pyx_GIVEREF(__pyx_v_erow);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_erow) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_ecol);
        __Pyx_GIVEREF(__pyx_v_ecol);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_ecol) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 948, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_tok_type);
        __Pyx_GIVEREF(__pyx_v_tok_type);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_tok_type) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_tok_string);
        __Pyx_GIVEREF(__pyx_v_tok_string);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_tok_string) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_8);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_8) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __Pyx_GIVEREF(__pyx_t_9);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_9) != (0)) __PYX_ERR(0, 948, __pyx_L1_error);
        __pyx_t_8 = 0;
        __pyx_t_9 = 0;
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_5);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_5 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":947
 *         except StopIteration:
 *             return tokenize.ENDMARKER, ''
 *         if pos:             # <<<<<<<<<<<<<<
 *             return tok_type, tok_string, (srow, scol), (erow, ecol)
 *         else:
*/
      }

      /* "Cython/Tempita/_tempita.py":950
 *             return tok_type, tok_string, (srow, scol), (erow, ecol)
 *         else:
 *             return tok_type, tok_string             # <<<<<<<<<<<<<<
 *     while 1:
 *         var_arg_type = None
*/
      /*else*/ {
        __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 950, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_v_tok_type);
        __Pyx_GIVEREF(__pyx_v_tok_type);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_tok_type) != (0)) __PYX_ERR(0, 950, __pyx_L1_error);
        __Pyx_INCREF(__pyx_v_tok_string);
        __Pyx_GIVEREF(__pyx_v_tok_string);
        if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_tok_string) != (0)) __PYX_ERR(0, 950, __pyx_L1_error);
        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_5);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_5 = 0;
        goto __pyx_L0;
      }

      /* "Cython/Tempita/_tempita.py":942
 *     defaults = {}
 * 
 *     def get_token(pos=False) -> tuple:             # <<<<<<<<<<<<<<
 *         try:
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_7);
      __Pyx_XDECREF(__pyx_t_8);
      __Pyx_XDECREF(__pyx_t_9);
      __Pyx_XDECREF(__pyx_t_10);
      __Pyx_XDECREF(__pyx_t_12);
      __Pyx_XDECREF(__pyx_t_13);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_signature.get_token", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_tok_type);
      __Pyx_XDECREF(__pyx_v_tok_string);
      __Pyx_XDECREF(__pyx_v_srow);
      __Pyx_XDECREF(__pyx_v_scol);
      __Pyx_XDECREF(__pyx_v_erow);
      __Pyx_XDECREF(__pyx_v_ecol);
      __Pyx_XDECREF(__pyx_v_line);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":935
 * 
 * 
 * def parse_signature(sig_text: str, name, pos) -> tuple:             # <<<<<<<<<<<<<<
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)
 *     sig_args = []
*/

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_30parse_signature(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_sig_text, PyObject *__pyx_v_name, PyObject *__pyx_v_pos) {
      struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *__pyx_cur_scope;
      PyObject *__pyx_v_sig_args = NULL;
      PyObject *__pyx_v_var_arg = NULL;
      PyObject *__pyx_v_var_kw = NULL;
      PyObject *__pyx_v_defaults = NULL;
      PyObject *__pyx_v_get_token = 0;
      PyObject *__pyx_v_var_arg_type = NULL;
      PyObject *__pyx_v_tok_type = 0;
      PyObject *__pyx_v_tok_string = 0;
      PyObject *__pyx_v_var_name = NULL;
      PyObject *__pyx_v_nest_type = NULL;
      PyObject *__pyx_v_unnest_type = NULL;
      PyObject *__pyx_v_nest_count = NULL;
      PyObject *__pyx_v_start_pos = NULL;
      PyObject *__pyx_v_end_pos = NULL;
      PyObject *__pyx_v_parts = NULL;
      PyObject *__pyx_v_s = NULL;
      PyObject *__pyx_v_e = NULL;
      PyObject *__pyx_v_default_expr = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *__pyx_t_4 = NULL;
      PyObject *__pyx_t_5 = NULL;
      PyObject *__pyx_t_6 = NULL;
      size_t __pyx_t_7;
      PyObject *(*__pyx_t_8)(PyObject *);
      int __pyx_t_9;
      int __pyx_t_10;
      int __pyx_t_11;
      int __pyx_t_12;
      PyObject *__pyx_t_13 = NULL;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("parse_signature", 0);
      __pyx_cur_scope = (struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *)__pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(__pyx_mstate_global->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, __pyx_mstate_global->__pyx_empty_tuple, NULL);
      if (unlikely(!__pyx_cur_scope)) {
        __pyx_cur_scope = ((struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *)Py_None);
        __Pyx_INCREF(Py_None);
        __PYX_ERR(0, 935, __pyx_L1_error)
      } else {
        __Pyx_GOTREF((PyObject *)__pyx_cur_scope);
      }

      /* "Cython/Tempita/_tempita.py":936
 * 
 * def parse_signature(sig_text: str, name, pos) -> tuple:
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)             # <<<<<<<<<<<<<<
 *     sig_args = []
 *     var_arg = None
*/
      __pyx_t_2 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 936, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_generate_tokens); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 936, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_5 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_StringIO); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 936, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
        assert(__pyx_t_5);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_sig_text};
        __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 936, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      }
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_readline); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 936, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
        assert(__pyx_t_2);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_2);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
        __pyx_t_7 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_6};
        __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 936, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_cur_scope->__pyx_v_tokens = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":937
 * def parse_signature(sig_text: str, name, pos) -> tuple:
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)
 *     sig_args = []             # <<<<<<<<<<<<<<
 *     var_arg = None
 *     var_kw = None
*/
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 937, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_sig_args = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":938
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)
 *     sig_args = []
 *     var_arg = None             # <<<<<<<<<<<<<<
 *     var_kw = None
 *     defaults = {}
*/
      __Pyx_INCREF(Py_None);
      __pyx_v_var_arg = ((PyObject*)Py_None);

      /* "Cython/Tempita/_tempita.py":939
 *     sig_args = []
 *     var_arg = None
 *     var_kw = None             # <<<<<<<<<<<<<<
 *     defaults = {}
 * 
*/
      __Pyx_INCREF(Py_None);
      __pyx_v_var_kw = ((PyObject*)Py_None);

      /* "Cython/Tempita/_tempita.py":940
 *     var_arg = None
 *     var_kw = None
 *     defaults = {}             # <<<<<<<<<<<<<<
 * 
 *     def get_token(pos=False) -> tuple:
*/
      __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 940, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_defaults = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":942
 *     defaults = {}
 * 
 *     def get_token(pos=False) -> tuple:             # <<<<<<<<<<<<<<
 *         try:
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
*/
      __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 942, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (PyDict_SetItem(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 942, __pyx_L1_error)
      __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_15parse_signature_1get_token, 0, __pyx_mstate_global->__pyx_n_u_parse_signature_locals_get_token, ((PyObject*)__pyx_cur_scope), __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 942, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[14]);
      __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_1);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_v_get_token = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "Cython/Tempita/_tempita.py":951
 *         else:
 *             return tok_type, tok_string
 *     while 1:             # <<<<<<<<<<<<<<
 *         var_arg_type = None
 *         tok_type: int
*/
      while (1) {

        /* "Cython/Tempita/_tempita.py":952
 *             return tok_type, tok_string
 *     while 1:
 *         var_arg_type = None             # <<<<<<<<<<<<<<
 *         tok_type: int
 *         tok_string: str
*/
        __Pyx_INCREF(Py_None);
        __Pyx_XDECREF_SET(__pyx_v_var_arg_type, ((PyObject*)Py_None));

        /* "Cython/Tempita/_tempita.py":955
 *         tok_type: int
 *         tok_string: str
 *         tok_type, tok_string = get_token()             # <<<<<<<<<<<<<<
 *         if tok_type == tokenize.ENDMARKER:
 *             break
*/
        __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_v_get_token); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 955, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
          PyObject* sequence = __pyx_t_4;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 955, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_1);
            __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_6);
          } else {
            __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_1);
            __pyx_t_6 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 955, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_6);
          }
          #else
          __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 955, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          #endif
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_2 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 955, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2);
          index = 0; __pyx_t_1 = __pyx_t_8(__pyx_t_2); if (unlikely(!__pyx_t_1)) goto __pyx_L5_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_1);
          index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_2); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_6);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_2), 2) < (0)) __PYX_ERR(0, 955, __pyx_L1_error)
          __pyx_t_8 = NULL;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          goto __pyx_L6_unpacking_done;
          __pyx_L5_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_8 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 955, __pyx_L1_error)
          __pyx_L6_unpacking_done:;
        }
        if (__Pyx_PyInt_FromNumber(&__pyx_t_1, NULL, 1) < (0)) __PYX_ERR(0, 955, __pyx_L1_error)
        if (!(likely(PyUnicode_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_6))) __PYX_ERR(0, 955, __pyx_L1_error)
        __Pyx_XDECREF_SET(__pyx_v_tok_type, ((PyObject*)__pyx_t_1));
        __pyx_t_1 = 0;
        __Pyx_XDECREF_SET(__pyx_v_tok_string, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "Cython/Tempita/_tempita.py":956
 *         tok_string: str
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER:             # <<<<<<<<<<<<<<
 *             break
 *         if tok_type == tokenize.OP and (tok_string == '*' or tok_string == '**'):
*/
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 956, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_ENDMARKER); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 956, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_9 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_6, Py_EQ); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 956, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (__pyx_t_9) {


          /* "Cython/Tempita/_tempita.py":957
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER:
 *             break             # <<<<<<<<<<<<<<
 *         if tok_type == tokenize.OP and (tok_string == '*' or tok_string == '**'):
 *             var_arg_type = tok_string
*/
          goto __pyx_L4_break;

          /* "Cython/Tempita/_tempita.py":956
 *         tok_string: str
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER:             # <<<<<<<<<<<<<<
 *             break
 *         if tok_type == tokenize.OP and (tok_string == '*' or tok_string == '**'):
*/
        }

        /* "Cython/Tempita/_tempita.py":958
 *         if tok_type == tokenize.ENDMARKER:
 *             break
 *         if tok_type == tokenize.OP and (tok_string == '*' or tok_string == '**'):             # <<<<<<<<<<<<<<
 *             var_arg_type = tok_string
 *             tok_type, tok_string = get_token()
*/
        __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 958, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_OP); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 958, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_4, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 958, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (__pyx_t_10) {

        } else {

          __pyx_t_9 = __pyx_t_10;

          goto __pyx_L9_bool_binop_done;
        }
        __pyx_t_10 = (__Pyx_PyObject_Equals_str_ch42(__pyx_v_tok_string, __pyx_mstate_global->__pyx_kp_u__18, Py_EQ)); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 958, __pyx_L1_error)
        if (!__pyx_t_10) {

        } else {

          __pyx_t_9 = __pyx_t_10;

          goto __pyx_L9_bool_binop_done;
        }
        __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_v_tok_string, __pyx_mstate_global->__pyx_kp_u__19, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 958, __pyx_L1_error)

        __pyx_t_9 = __pyx_t_10;

        __pyx_L9_bool_binop_done:;
        if (__pyx_t_9) {


          /* "Cython/Tempita/_tempita.py":959
 *             break
 *         if tok_type == tokenize.OP and (tok_string == '*' or tok_string == '**'):
 *             var_arg_type = tok_string             # <<<<<<<<<<<<<<
 *             tok_type, tok_string = get_token()
 *         if tok_type != tokenize.NAME:
*/
          __Pyx_INCREF(__pyx_v_tok_string);
          __Pyx_DECREF_SET(__pyx_v_var_arg_type, __pyx_v_tok_string);

          /* "Cython/Tempita/_tempita.py":960
 *         if tok_type == tokenize.OP and (tok_string == '*' or tok_string == '**'):
 *             var_arg_type = tok_string
 *             tok_type, tok_string = get_token()             # <<<<<<<<<<<<<<
 *         if tok_type != tokenize.NAME:
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
*/
          __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_v_get_token); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 960, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
            PyObject* sequence = __pyx_t_4;
            Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
            if (unlikely(size != 2)) {
              if (size > 2) __Pyx_RaiseTooManyValuesError(2);
              else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
              __PYX_ERR(0, 960, __pyx_L1_error)
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            if (likely(PyTuple_CheckExact(sequence))) {
              __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0);
              __Pyx_INCREF(__pyx_t_6);
              __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
              __Pyx_INCREF(__pyx_t_1);
            } else {
              __pyx_t_6 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 960, __pyx_L1_error)
              __Pyx_XGOTREF(__pyx_t_6);
              __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
              if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error)
              __Pyx_XGOTREF(__pyx_t_1);
            }
            #else
            __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 960, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            #endif
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          } else {
            Py_ssize_t index = -1;
            __pyx_t_2 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 960, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2);
            index = 0; __pyx_t_6 = __pyx_t_8(__pyx_t_2); if (unlikely(!__pyx_t_6)) goto __pyx_L12_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_6);
            index = 1; __pyx_t_1 = __pyx_t_8(__pyx_t_2); if (unlikely(!__pyx_t_1)) goto __pyx_L12_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_1);
            if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_2), 2) < (0)) __PYX_ERR(0, 960, __pyx_L1_error)
            __pyx_t_8 = NULL;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            goto __pyx_L13_unpacking_done;
            __pyx_L12_unpacking_failed:;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __pyx_t_8 = NULL;
            if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
            __PYX_ERR(0, 960, __pyx_L1_error)
            __pyx_L13_unpacking_done:;
          }
          if (__Pyx_PyInt_FromNumber(&__pyx_t_6, NULL, 1) < (0)) __PYX_ERR(0, 960, __pyx_L1_error)
          if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_1))) __PYX_ERR(0, 960, __pyx_L1_error)
          __Pyx_DECREF_SET(__pyx_v_tok_type, ((PyObject*)__pyx_t_6));
          __pyx_t_6 = 0;
          __Pyx_DECREF_SET(__pyx_v_tok_string, ((PyObject*)__pyx_t_1));
          __pyx_t_1 = 0;

          /* "Cython/Tempita/_tempita.py":958
 *         if tok_type == tokenize.ENDMARKER:
 *             break
 *         if tok_type == tokenize.OP and (tok_string == '*' or tok_string == '**'):             # <<<<<<<<<<<<<<
 *             var_arg_type = tok_string
 *             tok_type, tok_string = get_token()
*/
        }

        /* "Cython/Tempita/_tempita.py":961
 *             var_arg_type = tok_string
 *             tok_type, tok_string = get_token()
 *         if tok_type != tokenize.NAME:             # <<<<<<<<<<<<<<
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)
*/
        __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 961, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 961, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_9 = __Pyx_PyObject_CompareBoolNe_int_object(__pyx_v_tok_type, __pyx_t_1, Py_NE); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 961, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(__pyx_t_9)) {


          /* "Cython/Tempita/_tempita.py":962
 *             tok_type, tok_string = get_token()
 *         if tok_type != tokenize.NAME:
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,             # <<<<<<<<<<<<<<
 *                                 position=pos, name=name)
 *         var_name = tok_string
*/
          __pyx_t_4 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 962, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Invalid_signature_s, __pyx_v_sig_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 962, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);

          /* "Cython/Tempita/_tempita.py":963
 *         if tok_type != tokenize.NAME:
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)             # <<<<<<<<<<<<<<
 *         var_name = tok_string
 *         tok_type, tok_string = get_token()
*/
          __pyx_t_7 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_6))) {
            __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
            assert(__pyx_t_4);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
            __pyx_t_7 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_t_2, __pyx_v_pos, __pyx_v_name};
            #if CYTHON_VECTORCALL
            __pyx_t_3 = __pyx_mstate_global->__pyx_tuple[5];
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 962, __pyx_L1_error)
            __Pyx_INCREF(__pyx_t_3);
            #else
            {
              PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
              __pyx_t_3 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
              if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 962, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
            }
            #endif
            __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 962, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
          }
          __Pyx_Raise(__pyx_t_1, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __PYX_ERR(0, 962, __pyx_L1_error)

          /* "Cython/Tempita/_tempita.py":961
 *             var_arg_type = tok_string
 *             tok_type, tok_string = get_token()
 *         if tok_type != tokenize.NAME:             # <<<<<<<<<<<<<<
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)
*/
        }

        /* "Cython/Tempita/_tempita.py":964
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)
 *         var_name = tok_string             # <<<<<<<<<<<<<<
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','):
*/
        __Pyx_INCREF(__pyx_v_tok_string);
        __Pyx_XDECREF_SET(__pyx_v_var_name, __pyx_v_tok_string);

        /* "Cython/Tempita/_tempita.py":965
 *                                 position=pos, name=name)
 *         var_name = tok_string
 *         tok_type, tok_string = get_token()             # <<<<<<<<<<<<<<
 *         if tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','):
 *             if var_arg_type == '*':
*/
        __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_v_get_token); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 965, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
          PyObject* sequence = __pyx_t_1;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 965, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_6);
            __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_3);
          } else {
            __pyx_t_6 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 965, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_6);
            __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 965, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_3);
          }
          #else
          __pyx_t_6 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 965, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_3 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 965, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 965, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_2);
          index = 0; __pyx_t_6 = __pyx_t_8(__pyx_t_2); if (unlikely(!__pyx_t_6)) goto __pyx_L15_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_6);
          index = 1; __pyx_t_3 = __pyx_t_8(__pyx_t_2); if (unlikely(!__pyx_t_3)) goto __pyx_L15_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_3);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_2), 2) < (0)) __PYX_ERR(0, 965, __pyx_L1_error)
          __pyx_t_8 = NULL;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          goto __pyx_L16_unpacking_done;
          __pyx_L15_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_t_8 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 965, __pyx_L1_error)
          __pyx_L16_unpacking_done:;
        }
        if (__Pyx_PyInt_FromNumber(&__pyx_t_6, NULL, 1) < (0)) __PYX_ERR(0, 965, __pyx_L1_error)
        if (!(likely(PyUnicode_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_3))) __PYX_ERR(0, 965, __pyx_L1_error)
        __Pyx_DECREF_SET(__pyx_v_tok_type, ((PyObject*)__pyx_t_6));
        __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_tok_string, ((PyObject*)__pyx_t_3));
        __pyx_t_3 = 0;

        /* "Cython/Tempita/_tempita.py":966
 *         var_name = tok_string
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','):             # <<<<<<<<<<<<<<
 *             if var_arg_type == '*':
 *                 var_arg = var_name
*/
        __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_ENDMARKER); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_3, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        if (!__pyx_t_10) {

        } else {

          __pyx_t_9 = __pyx_t_10;

          goto __pyx_L18_bool_binop_done;
        }
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_1, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (__pyx_t_10) {

        } else {

          __pyx_t_9 = __pyx_t_10;

          goto __pyx_L18_bool_binop_done;
        }
        __pyx_t_10 = (__Pyx_PyObject_Equals_str_ch44(__pyx_v_tok_string, __pyx_mstate_global->__pyx_kp_u__17, Py_EQ)); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 966, __pyx_L1_error)

        __pyx_t_9 = __pyx_t_10;

        __pyx_L18_bool_binop_done:;
        if (__pyx_t_9) {


          /* "Cython/Tempita/_tempita.py":967
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','):
 *             if var_arg_type == '*':             # <<<<<<<<<<<<<<
 *                 var_arg = var_name
 *             elif var_arg_type == '**':
*/
          __pyx_t_9 = (__Pyx_PyObject_Equals_str_ch42(__pyx_v_var_arg_type, __pyx_mstate_global->__pyx_kp_u__18, Py_EQ)); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 967, __pyx_L1_error)
          if (__pyx_t_9) {


            /* "Cython/Tempita/_tempita.py":968
 *         if tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','):
 *             if var_arg_type == '*':
 *                 var_arg = var_name             # <<<<<<<<<<<<<<
 *             elif var_arg_type == '**':
 *                 var_kw = var_name
*/
            __Pyx_INCREF(__pyx_v_var_name);
            __Pyx_DECREF_SET(__pyx_v_var_arg, __pyx_v_var_name);

            /* "Cython/Tempita/_tempita.py":967
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','):
 *             if var_arg_type == '*':             # <<<<<<<<<<<<<<
 *                 var_arg = var_name
 *             elif var_arg_type == '**':
*/
            goto __pyx_L21;
          }

          /* "Cython/Tempita/_tempita.py":969
 *             if var_arg_type == '*':
 *                 var_arg = var_name
 *             elif var_arg_type == '**':             # <<<<<<<<<<<<<<
 *                 var_kw = var_name
 *             else:
*/
          __pyx_t_9 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_v_var_arg_type, __pyx_mstate_global->__pyx_kp_u__19, Py_EQ); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 969, __pyx_L1_error)
          if (__pyx_t_9) {


            /* "Cython/Tempita/_tempita.py":970
 *                 var_arg = var_name
 *             elif var_arg_type == '**':
 *                 var_kw = var_name             # <<<<<<<<<<<<<<
 *             else:
 *                 sig_args.append(var_name)
*/
            __Pyx_INCREF(__pyx_v_var_name);
            __Pyx_DECREF_SET(__pyx_v_var_kw, __pyx_v_var_name);

            /* "Cython/Tempita/_tempita.py":969
 *             if var_arg_type == '*':
 *                 var_arg = var_name
 *             elif var_arg_type == '**':             # <<<<<<<<<<<<<<
 *                 var_kw = var_name
 *             else:
*/
            goto __pyx_L21;
          }

          /* "Cython/Tempita/_tempita.py":972
 *                 var_kw = var_name
 *             else:
 *                 sig_args.append(var_name)             # <<<<<<<<<<<<<<
 *             if tok_type == tokenize.ENDMARKER:
 *                 break
*/
          /*else*/ {
            __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_sig_args, __pyx_v_var_name); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 972, __pyx_L1_error)

          }
          __pyx_L21:;

          /* "Cython/Tempita/_tempita.py":973
 *             else:
 *                 sig_args.append(var_name)
 *             if tok_type == tokenize.ENDMARKER:             # <<<<<<<<<<<<<<
 *                 break
 *             continue
*/
          __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 973, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_ENDMARKER); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 973, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_9 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_3, Py_EQ); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 973, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (__pyx_t_9) {


            /* "Cython/Tempita/_tempita.py":974
 *                 sig_args.append(var_name)
 *             if tok_type == tokenize.ENDMARKER:
 *                 break             # <<<<<<<<<<<<<<
 *             continue
 *         if var_arg_type is not None:
*/
            goto __pyx_L4_break;

            /* "Cython/Tempita/_tempita.py":973
 *             else:
 *                 sig_args.append(var_name)
 *             if tok_type == tokenize.ENDMARKER:             # <<<<<<<<<<<<<<
 *                 break
 *             continue
*/
          }

          /* "Cython/Tempita/_tempita.py":975
 *             if tok_type == tokenize.ENDMARKER:
 *                 break
 *             continue             # <<<<<<<<<<<<<<
 *         if var_arg_type is not None:
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
*/
          goto __pyx_L3_continue;

          /* "Cython/Tempita/_tempita.py":966
 *         var_name = tok_string
 *         tok_type, tok_string = get_token()
 *         if tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','):             # <<<<<<<<<<<<<<
 *             if var_arg_type == '*':
 *                 var_arg = var_name
*/
        }

        /* "Cython/Tempita/_tempita.py":976
 *                 break
 *             continue
 *         if var_arg_type is not None:             # <<<<<<<<<<<<<<
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)
*/
        __pyx_t_9 = (__pyx_v_var_arg_type != ((PyObject*)Py_None));
        if (unlikely(__pyx_t_9)) {


          /* "Cython/Tempita/_tempita.py":977
 *             continue
 *         if var_arg_type is not None:
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,             # <<<<<<<<<<<<<<
 *                                 position=pos, name=name)
 *         if tok_type == tokenize.OP and tok_string == '=':
*/
          __pyx_t_1 = NULL;
          __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 977, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_2 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Invalid_signature_s, __pyx_v_sig_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 977, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);

          /* "Cython/Tempita/_tempita.py":978
 *         if var_arg_type is not None:
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)             # <<<<<<<<<<<<<<
 *         if tok_type == tokenize.OP and tok_string == '=':
 *             nest_type = None
*/
          __pyx_t_7 = 1;
          #if CYTHON_UNPACK_METHODS
          if (unlikely(PyMethod_Check(__pyx_t_6))) {
            __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_6);
            assert(__pyx_t_1);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
            __pyx_t_7 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_1, __pyx_t_2, __pyx_v_pos, __pyx_v_name};
            #if CYTHON_VECTORCALL
            __pyx_t_4 = __pyx_mstate_global->__pyx_tuple[5];
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 977, __pyx_L1_error)
            __Pyx_INCREF(__pyx_t_4);
            #else
            {
              PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
              __pyx_t_4 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 977, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
            }
            #endif
            __pyx_t_3 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 977, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
          }
          __Pyx_Raise(__pyx_t_3, 0, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __PYX_ERR(0, 977, __pyx_L1_error)

          /* "Cython/Tempita/_tempita.py":976
 *                 break
 *             continue
 *         if var_arg_type is not None:             # <<<<<<<<<<<<<<
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)
*/
        }

        /* "Cython/Tempita/_tempita.py":979
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)
 *         if tok_type == tokenize.OP and tok_string == '=':             # <<<<<<<<<<<<<<
 *             nest_type = None
 *             unnest_type = None
*/
        __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 979, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OP); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 979, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_6, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 979, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (__pyx_t_10) {

        } else {

          __pyx_t_9 = __pyx_t_10;

          goto __pyx_L25_bool_binop_done;
        }
        __pyx_t_10 = (__Pyx_PyObject_Equals_str_ch61(__pyx_v_tok_string, __pyx_mstate_global->__pyx_kp_u__7, Py_EQ)); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 979, __pyx_L1_error)

        __pyx_t_9 = __pyx_t_10;

        __pyx_L25_bool_binop_done:;
        if (__pyx_t_9) {


          /* "Cython/Tempita/_tempita.py":980
 *                                 position=pos, name=name)
 *         if tok_type == tokenize.OP and tok_string == '=':
 *             nest_type = None             # <<<<<<<<<<<<<<
 *             unnest_type = None
 *             nest_count = 0
*/
          __Pyx_INCREF(Py_None);
          __Pyx_XDECREF_SET(__pyx_v_nest_type, ((PyObject*)Py_None));

          /* "Cython/Tempita/_tempita.py":981
 *         if tok_type == tokenize.OP and tok_string == '=':
 *             nest_type = None
 *             unnest_type = None             # <<<<<<<<<<<<<<
 *             nest_count = 0
 *             start_pos = end_pos = None
*/
          __Pyx_INCREF(Py_None);
          __Pyx_XDECREF_SET(__pyx_v_unnest_type, Py_None);

          /* "Cython/Tempita/_tempita.py":982
 *             nest_type = None
 *             unnest_type = None
 *             nest_count = 0             # <<<<<<<<<<<<<<
 *             start_pos = end_pos = None
 *             parts = []
*/
          __Pyx_INCREF(__pyx_mstate_global->__pyx_int_0);
          __Pyx_XDECREF_SET(__pyx_v_nest_count, __pyx_mstate_global->__pyx_int_0);

          /* "Cython/Tempita/_tempita.py":983
 *             unnest_type = None
 *             nest_count = 0
 *             start_pos = end_pos = None             # <<<<<<<<<<<<<<
 *             parts = []
 *             while 1:
*/
          __Pyx_INCREF(Py_None);
          __Pyx_XDECREF_SET(__pyx_v_start_pos, Py_None);
          __Pyx_INCREF(Py_None);
          __Pyx_XDECREF_SET(__pyx_v_end_pos, Py_None);

          /* "Cython/Tempita/_tempita.py":984
 *             nest_count = 0
 *             start_pos = end_pos = None
 *             parts = []             # <<<<<<<<<<<<<<
 *             while 1:
 *                 tok_type, tok_string, s, e = get_token(True)
*/
          __pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 984, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_XDECREF_SET(__pyx_v_parts, ((PyObject*)__pyx_t_6));
          __pyx_t_6 = 0;

          /* "Cython/Tempita/_tempita.py":985
 *             start_pos = end_pos = None
 *             parts = []
 *             while 1:             # <<<<<<<<<<<<<<
 *                 tok_type, tok_string, s, e = get_token(True)
 *                 if start_pos is None:
*/
          while (1) {

            /* "Cython/Tempita/_tempita.py":986
 *             parts = []
 *             while 1:
 *                 tok_type, tok_string, s, e = get_token(True)             # <<<<<<<<<<<<<<
 *                 if start_pos is None:
 *                     start_pos = s
*/
            __pyx_t_6 = __pyx_pf_6Cython_7Tempita_8_tempita_15parse_signature_get_token(__pyx_v_get_token, Py_True); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 986, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) {
              PyObject* sequence = __pyx_t_6;
              Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
              if (unlikely(size != 4)) {
                if (size > 4) __Pyx_RaiseTooManyValuesError(4);
                else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
                __PYX_ERR(0, 986, __pyx_L1_error)
              }
              #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
              if (likely(PyTuple_CheckExact(sequence))) {
                __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
                __Pyx_INCREF(__pyx_t_3);
                __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
                __Pyx_INCREF(__pyx_t_4);
                __pyx_t_2 = PyTuple_GET_ITEM(sequence, 2);
                __Pyx_INCREF(__pyx_t_2);
                __pyx_t_1 = PyTuple_GET_ITEM(sequence, 3);
                __Pyx_INCREF(__pyx_t_1);
              } else {
                __pyx_t_3 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 986, __pyx_L1_error)
                __Pyx_XGOTREF(__pyx_t_3);
                __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 986, __pyx_L1_error)
                __Pyx_XGOTREF(__pyx_t_4);
                __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 2, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 986, __pyx_L1_error)
                __Pyx_XGOTREF(__pyx_t_2);
                __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 3, __Pyx_ReferenceSharing_SharedReference);
                if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 986, __pyx_L1_error)
                __Pyx_XGOTREF(__pyx_t_1);
              }
              #else
              {
                Py_ssize_t i;
                PyObject** temps[4] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_2,&__pyx_t_1};
                for (i=0; i < 4; i++) {
                  PyObject* item = __Pyx_PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 986, __pyx_L1_error)
                  __Pyx_GOTREF(item);
                  *(temps[i]) = item;
                }
              }
              #endif
              __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            } else {
              Py_ssize_t index = -1;
              PyObject** temps[4] = {&__pyx_t_3,&__pyx_t_4,&__pyx_t_2,&__pyx_t_1};
              __pyx_t_5 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 986, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_5);
              __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
              __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_5);
              for (index=0; index < 4; index++) {
                PyObject* item = __pyx_t_8(__pyx_t_5); if (unlikely(!item)) goto __pyx_L29_unpacking_failed;
                __Pyx_GOTREF(item);
                *(temps[index]) = item;
              }
              if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_5), 4) < (0)) __PYX_ERR(0, 986, __pyx_L1_error)
              __pyx_t_8 = NULL;
              __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
              goto __pyx_L30_unpacking_done;
              __pyx_L29_unpacking_failed:;
              __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
              __pyx_t_8 = NULL;
              if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
              __PYX_ERR(0, 986, __pyx_L1_error)
              __pyx_L30_unpacking_done:;
            }
            if (__Pyx_PyInt_FromNumber(&__pyx_t_3, NULL, 1) < (0)) __PYX_ERR(0, 986, __pyx_L1_error)
            if (!(likely(PyUnicode_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_4))) __PYX_ERR(0, 986, __pyx_L1_error)
            __Pyx_DECREF_SET(__pyx_v_tok_type, ((PyObject*)__pyx_t_3));
            __pyx_t_3 = 0;
            __Pyx_DECREF_SET(__pyx_v_tok_string, ((PyObject*)__pyx_t_4));
            __pyx_t_4 = 0;
            __Pyx_XDECREF_SET(__pyx_v_s, __pyx_t_2);
            __pyx_t_2 = 0;
            __Pyx_XDECREF_SET(__pyx_v_e, __pyx_t_1);
            __pyx_t_1 = 0;

            /* "Cython/Tempita/_tempita.py":987
 *             while 1:
 *                 tok_type, tok_string, s, e = get_token(True)
 *                 if start_pos is None:             # <<<<<<<<<<<<<<
 *                     start_pos = s
 *                 end_pos = e
*/
            __pyx_t_9 = (__pyx_v_start_pos == Py_None);
            if (__pyx_t_9) {


              /* "Cython/Tempita/_tempita.py":988
 *                 tok_type, tok_string, s, e = get_token(True)
 *                 if start_pos is None:
 *                     start_pos = s             # <<<<<<<<<<<<<<
 *                 end_pos = e
 *                 if tok_type == tokenize.ENDMARKER and nest_count:
*/
              __Pyx_INCREF(__pyx_v_s);
              __Pyx_DECREF_SET(__pyx_v_start_pos, __pyx_v_s);

              /* "Cython/Tempita/_tempita.py":987
 *             while 1:
 *                 tok_type, tok_string, s, e = get_token(True)
 *                 if start_pos is None:             # <<<<<<<<<<<<<<
 *                     start_pos = s
 *                 end_pos = e
*/
            }

            /* "Cython/Tempita/_tempita.py":989
 *                 if start_pos is None:
 *                     start_pos = s
 *                 end_pos = e             # <<<<<<<<<<<<<<
 *                 if tok_type == tokenize.ENDMARKER and nest_count:
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,
*/
            __Pyx_INCREF(__pyx_v_e);
            __Pyx_DECREF_SET(__pyx_v_end_pos, __pyx_v_e);

            /* "Cython/Tempita/_tempita.py":990
 *                     start_pos = s
 *                 end_pos = e
 *                 if tok_type == tokenize.ENDMARKER and nest_count:             # <<<<<<<<<<<<<<
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                         position=pos, name=name)
*/
            __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 990, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_ENDMARKER); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 990, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_1, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 990, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (__pyx_t_10) {

            } else {

              __pyx_t_9 = __pyx_t_10;

              goto __pyx_L33_bool_binop_done;
            }
            if (__pyx_v_nest_count == Py_None) __pyx_t_10 = 0;
            else
            {
              Py_ssize_t __pyx_temp = __Pyx_PyLong_IsNonZero(__pyx_v_nest_count);
              if (unlikely(((!CYTHON_USE_PYLONG_INTERNALS) && __pyx_temp < 0))) __PYX_ERR(0, 990, __pyx_L1_error)
              __pyx_t_10 = (__pyx_temp != 0);
            }


            __pyx_t_9 = __pyx_t_10;

            __pyx_L33_bool_binop_done:;
            if (unlikely(__pyx_t_9)) {


              /* "Cython/Tempita/_tempita.py":991
 *                 end_pos = e
 *                 if tok_type == tokenize.ENDMARKER and nest_count:
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,             # <<<<<<<<<<<<<<
 *                                         position=pos, name=name)
 *                 if (not nest_count and
*/
              __pyx_t_6 = NULL;
              __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TemplateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 991, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_2);
              __pyx_t_4 = PyUnicode_Format(__pyx_mstate_global->__pyx_kp_u_Invalid_signature_s, __pyx_v_sig_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 991, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);

              /* "Cython/Tempita/_tempita.py":992
 *                 if tok_type == tokenize.ENDMARKER and nest_count:
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                         position=pos, name=name)             # <<<<<<<<<<<<<<
 *                 if (not nest_count and
 *                         (tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','))):
*/
              __pyx_t_7 = 1;
              #if CYTHON_UNPACK_METHODS
              if (unlikely(PyMethod_Check(__pyx_t_2))) {
                __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
                assert(__pyx_t_6);
                PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
                __Pyx_INCREF(__pyx_t_6);
                __Pyx_INCREF(__pyx__function);
                __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
                __pyx_t_7 = 0;
              }
              #endif
              {
                PyObject *__pyx_callargs[4] = {__pyx_t_6, __pyx_t_4, __pyx_v_pos, __pyx_v_name};
                #if CYTHON_VECTORCALL
                __pyx_t_3 = __pyx_mstate_global->__pyx_tuple[5];
                if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 991, __pyx_L1_error)
                __Pyx_INCREF(__pyx_t_3);
                #else
                {
                  PyObject *__pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
                  __pyx_t_3 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 2);
                  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 991, __pyx_L1_error)
                  __Pyx_GOTREF(__pyx_t_3);
                }
                #endif
                __pyx_t_1 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_3);
                __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
                __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
                __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 991, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_1);
              }
              __Pyx_Raise(__pyx_t_1, 0, 0, 0);
              __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
              __PYX_ERR(0, 991, __pyx_L1_error)

              /* "Cython/Tempita/_tempita.py":990
 *                     start_pos = s
 *                 end_pos = e
 *                 if tok_type == tokenize.ENDMARKER and nest_count:             # <<<<<<<<<<<<<<
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                         position=pos, name=name)
*/
            }

            /* "Cython/Tempita/_tempita.py":993
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                         position=pos, name=name)
 *                 if (not nest_count and             # <<<<<<<<<<<<<<
 *                         (tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','))):
 *                     default_expr = isolate_expression(sig_text, start_pos, end_pos)
*/
            if (__pyx_v_nest_count == Py_None) __pyx_t_10 = 0;
            else
            {
              Py_ssize_t __pyx_temp = __Pyx_PyLong_IsNonZero(__pyx_v_nest_count);
              if (unlikely(((!CYTHON_USE_PYLONG_INTERNALS) && __pyx_temp < 0))) __PYX_ERR(0, 993, __pyx_L1_error)
              __pyx_t_10 = (__pyx_temp != 0);
            }

            __pyx_t_12 = (!__pyx_t_10);


            if (__pyx_t_12) {

            } else {

              __pyx_t_9 = __pyx_t_12;

              goto __pyx_L36_bool_binop_done;
            }

            /* "Cython/Tempita/_tempita.py":994
 *                                         position=pos, name=name)
 *                 if (not nest_count and
 *                         (tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','))):             # <<<<<<<<<<<<<<
 *                     default_expr = isolate_expression(sig_text, start_pos, end_pos)
 *                     defaults[var_name] = default_expr
*/
            __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 994, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_ENDMARKER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 994, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            __pyx_t_12 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_2, Py_EQ); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 994, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (!__pyx_t_12) {

            } else {

              __pyx_t_9 = __pyx_t_12;

              goto __pyx_L36_bool_binop_done;
            }
            __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 994, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_OP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 994, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
            __pyx_t_12 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_1, Py_EQ); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 994, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (__pyx_t_12) {

            } else {

              __pyx_t_9 = __pyx_t_12;

              goto __pyx_L36_bool_binop_done;
            }
            __pyx_t_12 = (__Pyx_PyObject_Equals_str_ch44(__pyx_v_tok_string, __pyx_mstate_global->__pyx_kp_u__17, Py_EQ)); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 994, __pyx_L1_error)

            __pyx_t_9 = __pyx_t_12;

            __pyx_L36_bool_binop_done:;

            /* "Cython/Tempita/_tempita.py":993
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                         position=pos, name=name)
 *                 if (not nest_count and             # <<<<<<<<<<<<<<
 *                         (tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','))):
 *                     default_expr = isolate_expression(sig_text, start_pos, end_pos)
*/
            if (__pyx_t_9) {


              /* "Cython/Tempita/_tempita.py":995
 *                 if (not nest_count and
 *                         (tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','))):
 *                     default_expr = isolate_expression(sig_text, start_pos, end_pos)             # <<<<<<<<<<<<<<
 *                     defaults[var_name] = default_expr
 *                     sig_args.append(var_name)
*/
              __pyx_t_2 = NULL;
              __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_isolate_expression); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 995, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
              __pyx_t_7 = 1;
              #if CYTHON_UNPACK_METHODS
              if (unlikely(PyMethod_Check(__pyx_t_3))) {
                __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
                assert(__pyx_t_2);
                PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
                __Pyx_INCREF(__pyx_t_2);
                __Pyx_INCREF(__pyx__function);
                __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
                __pyx_t_7 = 0;
              }
              #endif
              {
                PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_v_sig_text, __pyx_v_start_pos, __pyx_v_end_pos};
                __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (4-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
                __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
                if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 995, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_1);
              }
              __Pyx_XDECREF_SET(__pyx_v_default_expr, __pyx_t_1);
              __pyx_t_1 = 0;

              /* "Cython/Tempita/_tempita.py":996
 *                         (tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','))):
 *                     default_expr = isolate_expression(sig_text, start_pos, end_pos)
 *                     defaults[var_name] = default_expr             # <<<<<<<<<<<<<<
 *                     sig_args.append(var_name)
 *                     break
*/
              if (unlikely((PyDict_SetItem(__pyx_v_defaults, __pyx_v_var_name, __pyx_v_default_expr) < 0))) __PYX_ERR(0, 996, __pyx_L1_error)

              /* "Cython/Tempita/_tempita.py":997
 *                     default_expr = isolate_expression(sig_text, start_pos, end_pos)
 *                     defaults[var_name] = default_expr
 *                     sig_args.append(var_name)             # <<<<<<<<<<<<<<
 *                     break
 *                 parts.append((tok_type, tok_string))
*/
              __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_sig_args, __pyx_v_var_name); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 997, __pyx_L1_error)


              /* "Cython/Tempita/_tempita.py":998
 *                     defaults[var_name] = default_expr
 *                     sig_args.append(var_name)
 *                     break             # <<<<<<<<<<<<<<
 *                 parts.append((tok_type, tok_string))
 *                 if nest_count and tok_type == tokenize.OP and tok_string == nest_type:
*/
              goto __pyx_L28_break;

              /* "Cython/Tempita/_tempita.py":993
 *                     raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                         position=pos, name=name)
 *                 if (not nest_count and             # <<<<<<<<<<<<<<
 *                         (tok_type == tokenize.ENDMARKER or (tok_type == tokenize.OP and tok_string == ','))):
 *                     default_expr = isolate_expression(sig_text, start_pos, end_pos)
*/
            }

            /* "Cython/Tempita/_tempita.py":999
 *                     sig_args.append(var_name)
 *                     break
 *                 parts.append((tok_type, tok_string))             # <<<<<<<<<<<<<<
 *                 if nest_count and tok_type == tokenize.OP and tok_string == nest_type:
 *                     nest_count += 1
*/
            __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 999, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_INCREF(__pyx_v_tok_type);
            __Pyx_GIVEREF(__pyx_v_tok_type);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_tok_type) != (0)) __PYX_ERR(0, 999, __pyx_L1_error);
            __Pyx_INCREF(__pyx_v_tok_string);
            __Pyx_GIVEREF(__pyx_v_tok_string);
            if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_tok_string) != (0)) __PYX_ERR(0, 999, __pyx_L1_error);
            __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_parts, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 999, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;


            /* "Cython/Tempita/_tempita.py":1000
 *                     break
 *                 parts.append((tok_type, tok_string))
 *                 if nest_count and tok_type == tokenize.OP and tok_string == nest_type:             # <<<<<<<<<<<<<<
 *                     nest_count += 1
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:
*/
            if (__pyx_v_nest_count == Py_None) __pyx_t_12 = 0;
            else
            {
              Py_ssize_t __pyx_temp = __Pyx_PyLong_IsNonZero(__pyx_v_nest_count);
              if (unlikely(((!CYTHON_USE_PYLONG_INTERNALS) && __pyx_temp < 0))) __PYX_ERR(0, 1000, __pyx_L1_error)
              __pyx_t_12 = (__pyx_temp != 0);
            }

            if (__pyx_t_12) {

            } else {

              __pyx_t_9 = __pyx_t_12;

              goto __pyx_L41_bool_binop_done;
            }
            __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1000, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_OP); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1000, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            __pyx_t_12 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_3, Py_EQ); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 1000, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (__pyx_t_12) {

            } else {

              __pyx_t_9 = __pyx_t_12;

              goto __pyx_L41_bool_binop_done;
            }
            __pyx_t_12 = __Pyx_PyObject_CompareBoolEq_str_str(__pyx_v_tok_string, __pyx_v_nest_type, Py_EQ); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 1000, __pyx_L1_error)

            __pyx_t_9 = __pyx_t_12;

            __pyx_L41_bool_binop_done:;
            if (__pyx_t_9) {


              /* "Cython/Tempita/_tempita.py":1001
 *                 parts.append((tok_type, tok_string))
 *                 if nest_count and tok_type == tokenize.OP and tok_string == nest_type:
 *                     nest_count += 1             # <<<<<<<<<<<<<<
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:
 *                     nest_count -= 1
*/
              __pyx_t_3 = __Pyx_PyLong_AddObjC(__pyx_v_nest_count, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1001, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
              __Pyx_DECREF_SET(__pyx_v_nest_count, ((PyObject*)__pyx_t_3));
              __pyx_t_3 = 0;

              /* "Cython/Tempita/_tempita.py":1000
 *                     break
 *                 parts.append((tok_type, tok_string))
 *                 if nest_count and tok_type == tokenize.OP and tok_string == nest_type:             # <<<<<<<<<<<<<<
 *                     nest_count += 1
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:
*/
              goto __pyx_L40;
            }

            /* "Cython/Tempita/_tempita.py":1002
 *                 if nest_count and tok_type == tokenize.OP and tok_string == nest_type:
 *                     nest_count += 1
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:             # <<<<<<<<<<<<<<
 *                     nest_count -= 1
 *                     if not nest_count:
*/
            if (__pyx_v_nest_count == Py_None) __pyx_t_12 = 0;
            else
            {
              Py_ssize_t __pyx_temp = __Pyx_PyLong_IsNonZero(__pyx_v_nest_count);
              if (unlikely(((!CYTHON_USE_PYLONG_INTERNALS) && __pyx_temp < 0))) __PYX_ERR(0, 1002, __pyx_L1_error)
              __pyx_t_12 = (__pyx_temp != 0);
            }

            if (__pyx_t_12) {

            } else {

              __pyx_t_9 = __pyx_t_12;

              goto __pyx_L44_bool_binop_done;
            }
            __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1002, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_OP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1002, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            __pyx_t_12 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_1, Py_EQ); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 1002, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (__pyx_t_12) {

            } else {

              __pyx_t_9 = __pyx_t_12;

              goto __pyx_L44_bool_binop_done;
            }
            __pyx_t_12 = __Pyx_PyObject_CompareBoolEq_str_object(__pyx_v_tok_string, __pyx_v_unnest_type, Py_EQ); if (unlikely((__pyx_t_12 < 0))) __PYX_ERR(0, 1002, __pyx_L1_error)

            __pyx_t_9 = __pyx_t_12;

            __pyx_L44_bool_binop_done:;
            if (__pyx_t_9) {


              /* "Cython/Tempita/_tempita.py":1003
 *                     nest_count += 1
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:
 *                     nest_count -= 1             # <<<<<<<<<<<<<<
 *                     if not nest_count:
 *                         nest_type = unnest_type = None
*/
              __pyx_t_1 = __Pyx_PyLong_SubtractObjC(__pyx_v_nest_count, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1003, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_1);
              __Pyx_DECREF_SET(__pyx_v_nest_count, ((PyObject*)__pyx_t_1));
              __pyx_t_1 = 0;

              /* "Cython/Tempita/_tempita.py":1004
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:
 *                     nest_count -= 1
 *                     if not nest_count:             # <<<<<<<<<<<<<<
 *                         nest_type = unnest_type = None
 *                 elif not nest_count and tok_type == tokenize.OP and tok_string in ('(', '[', '{'):
*/
              if (__pyx_v_nest_count == Py_None) __pyx_t_9 = 0;
              else
              {
                Py_ssize_t __pyx_temp = __Pyx_PyLong_IsNonZero(__pyx_v_nest_count);
                if (unlikely(((!CYTHON_USE_PYLONG_INTERNALS) && __pyx_temp < 0))) __PYX_ERR(0, 1004, __pyx_L1_error)
                __pyx_t_9 = (__pyx_temp != 0);
              }

              __pyx_t_12 = (!__pyx_t_9);


              if (__pyx_t_12) {


                /* "Cython/Tempita/_tempita.py":1005
 *                     nest_count -= 1
 *                     if not nest_count:
 *                         nest_type = unnest_type = None             # <<<<<<<<<<<<<<
 *                 elif not nest_count and tok_type == tokenize.OP and tok_string in ('(', '[', '{'):
 *                     nest_type = tok_string
*/
                __Pyx_INCREF(Py_None);
                __Pyx_DECREF_SET(__pyx_v_nest_type, ((PyObject*)Py_None));
                __Pyx_INCREF(Py_None);
                __Pyx_DECREF_SET(__pyx_v_unnest_type, Py_None);

                /* "Cython/Tempita/_tempita.py":1004
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:
 *                     nest_count -= 1
 *                     if not nest_count:             # <<<<<<<<<<<<<<
 *                         nest_type = unnest_type = None
 *                 elif not nest_count and tok_type == tokenize.OP and tok_string in ('(', '[', '{'):
*/
              }

              /* "Cython/Tempita/_tempita.py":1002
 *                 if nest_count and tok_type == tokenize.OP and tok_string == nest_type:
 *                     nest_count += 1
 *                 elif nest_count and tok_type == tokenize.OP and tok_string == unnest_type:             # <<<<<<<<<<<<<<
 *                     nest_count -= 1
 *                     if not nest_count:
*/
              goto __pyx_L40;
            }

            /* "Cython/Tempita/_tempita.py":1006
 *                     if not nest_count:
 *                         nest_type = unnest_type = None
 *                 elif not nest_count and tok_type == tokenize.OP and tok_string in ('(', '[', '{'):             # <<<<<<<<<<<<<<
 *                     nest_type = tok_string
 *                     nest_count = 1
*/
            if (__pyx_v_nest_count == Py_None) __pyx_t_9 = 0;
            else
            {
              Py_ssize_t __pyx_temp = __Pyx_PyLong_IsNonZero(__pyx_v_nest_count);
              if (unlikely(((!CYTHON_USE_PYLONG_INTERNALS) && __pyx_temp < 0))) __PYX_ERR(0, 1006, __pyx_L1_error)
              __pyx_t_9 = (__pyx_temp != 0);
            }

            __pyx_t_10 = (!__pyx_t_9);


            if (__pyx_t_10) {

            } else {

              __pyx_t_12 = __pyx_t_10;

              goto __pyx_L48_bool_binop_done;
            }
            __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_tokenize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1006, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_OP); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1006, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            __pyx_t_10 = __Pyx_PyObject_CompareBoolEq_int_object(__pyx_v_tok_type, __pyx_t_3, Py_EQ); if (unlikely((__pyx_t_10 < 0))) __PYX_ERR(0, 1006, __pyx_L1_error)
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (__pyx_t_10) {

            } else {

              __pyx_t_12 = __pyx_t_10;

              goto __pyx_L48_bool_binop_done;
            }
            __Pyx_INCREF(__pyx_v_tok_string);
            __pyx_t_13 = __pyx_v_tok_string;
            __pyx_t_9 = (__Pyx_PyObject_Equals_str_ch40(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u__8, Py_EQ)); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 1006, __pyx_L1_error)
            if (!__pyx_t_9) {

            } else {

              __pyx_t_10 = __pyx_t_9;

              goto __pyx_L51_bool_binop_done;
            }
            __pyx_t_9 = (__Pyx_PyObject_Equals_str_ch91(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u__20, Py_EQ)); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 1006, __pyx_L1_error)
            if (!__pyx_t_9) {

            } else {

              __pyx_t_10 = __pyx_t_9;

              goto __pyx_L51_bool_binop_done;
            }
            __pyx_t_9 = (__Pyx_PyObject_Equals_str_ch123(__pyx_t_13, __pyx_mstate_global->__pyx_kp_u__21, Py_EQ)); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 1006, __pyx_L1_error)

            __pyx_t_10 = __pyx_t_9;

            __pyx_L51_bool_binop_done:;
            __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
            __pyx_t_9 = __pyx_t_10;



            __pyx_t_12 = __pyx_t_9;

            __pyx_L48_bool_binop_done:;
            if (__pyx_t_12) {


              /* "Cython/Tempita/_tempita.py":1007
 *                         nest_type = unnest_type = None
 *                 elif not nest_count and tok_type == tokenize.OP and tok_string in ('(', '[', '{'):
 *                     nest_type = tok_string             # <<<<<<<<<<<<<<
 *                     nest_count = 1
 *                     unnest_type = {'(': ')', '[': ']', '{': '}'}[nest_type]
*/
              __Pyx_INCREF(__pyx_v_tok_string);
              __Pyx_DECREF_SET(__pyx_v_nest_type, __pyx_v_tok_string);

              /* "Cython/Tempita/_tempita.py":1008
 *                 elif not nest_count and tok_type == tokenize.OP and tok_string in ('(', '[', '{'):
 *                     nest_type = tok_string
 *                     nest_count = 1             # <<<<<<<<<<<<<<
 *                     unnest_type = {'(': ')', '[': ']', '{': '}'}[nest_type]
 *     return sig_args, var_arg, var_kw, defaults
*/
              __Pyx_INCREF(__pyx_mstate_global->__pyx_int_1);
              __Pyx_DECREF_SET(__pyx_v_nest_count, __pyx_mstate_global->__pyx_int_1);

              /* "Cython/Tempita/_tempita.py":1009
 *                     nest_type = tok_string
 *                     nest_count = 1
 *                     unnest_type = {'(': ')', '[': ']', '{': '}'}[nest_type]             # <<<<<<<<<<<<<<
 *     return sig_args, var_arg, var_kw, defaults
 * 
*/
              __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1009, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
              if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__8, __pyx_mstate_global->__pyx_kp_u__16) < (0)) __PYX_ERR(0, 1009, __pyx_L1_error)
              if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__20, __pyx_mstate_global->__pyx_kp_u__22) < (0)) __PYX_ERR(0, 1009, __pyx_L1_error)
              if (PyDict_SetItem(__pyx_t_3, __pyx_mstate_global->__pyx_kp_u__21, __pyx_mstate_global->__pyx_kp_u__23) < (0)) __PYX_ERR(0, 1009, __pyx_L1_error)
              __pyx_t_1 = __Pyx_PyDict_GetItem(__pyx_t_3, __pyx_v_nest_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1009, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_1);
              __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
              __Pyx_DECREF_SET(__pyx_v_unnest_type, __pyx_t_1);
              __pyx_t_1 = 0;

              /* "Cython/Tempita/_tempita.py":1006
 *                     if not nest_count:
 *                         nest_type = unnest_type = None
 *                 elif not nest_count and tok_type == tokenize.OP and tok_string in ('(', '[', '{'):             # <<<<<<<<<<<<<<
 *                     nest_type = tok_string
 *                     nest_count = 1
*/
            }
            __pyx_L40:;
          }
          __pyx_L28_break:;

          /* "Cython/Tempita/_tempita.py":979
 *             raise TemplateError('Invalid signature: (%s)' % sig_text,
 *                                 position=pos, name=name)
 *         if tok_type == tokenize.OP and tok_string == '=':             # <<<<<<<<<<<<<<
 *             nest_type = None
 *             unnest_type = None
*/
        }
        __pyx_L3_continue:;
      }
      __pyx_L4_break:;

      /* "Cython/Tempita/_tempita.py":1010
 *                     nest_count = 1
 *                     unnest_type = {'(': ')', '[': ']', '{': '}'}[nest_type]
 *     return sig_args, var_arg, var_kw, defaults             # <<<<<<<<<<<<<<
 * 
 * 
*/
      __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1010, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_v_sig_args);
      __Pyx_GIVEREF(__pyx_v_sig_args);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_sig_args) != (0)) __PYX_ERR(0, 1010, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_var_arg);
      __Pyx_GIVEREF(__pyx_v_var_arg);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_var_arg) != (0)) __PYX_ERR(0, 1010, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_var_kw);
      __Pyx_GIVEREF(__pyx_v_var_kw);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_var_kw) != (0)) __PYX_ERR(0, 1010, __pyx_L1_error);
      __Pyx_INCREF(__pyx_v_defaults);
      __Pyx_GIVEREF(__pyx_v_defaults);
      if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_defaults) != (0)) __PYX_ERR(0, 1010, __pyx_L1_error);
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = ((PyObject*)__pyx_t_1);
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":935
 * 
 * 
 * def parse_signature(sig_text: str, name, pos) -> tuple:             # <<<<<<<<<<<<<<
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)
 *     sig_args = []
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_6);
      __Pyx_XDECREF(__pyx_t_13);
      __Pyx_AddTraceback("Cython.Tempita._tempita.parse_signature", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_sig_args);
      __Pyx_XDECREF(__pyx_v_var_arg);
      __Pyx_XDECREF(__pyx_v_var_kw);
      __Pyx_XDECREF(__pyx_v_defaults);
      __Pyx_XDECREF(__pyx_v_get_token);
      __Pyx_XDECREF(__pyx_v_var_arg_type);
      __Pyx_XDECREF(__pyx_v_tok_type);
      __Pyx_XDECREF(__pyx_v_tok_string);
      __Pyx_XDECREF(__pyx_v_var_name);
      __Pyx_XDECREF(__pyx_v_nest_type);
      __Pyx_XDECREF(__pyx_v_unnest_type);
      __Pyx_XDECREF(__pyx_v_nest_count);
      __Pyx_XDECREF(__pyx_v_start_pos);
      __Pyx_XDECREF(__pyx_v_end_pos);
      __Pyx_XDECREF(__pyx_v_parts);
      __Pyx_XDECREF(__pyx_v_s);
      __Pyx_XDECREF(__pyx_v_e);
      __Pyx_XDECREF(__pyx_v_default_expr);
      __Pyx_DECREF((PyObject *)__pyx_cur_scope);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":1013
 * 
 * 
 * def isolate_expression(string: str, start_pos, end_pos) -> str:             # <<<<<<<<<<<<<<
 *     srow, scol = start_pos
 *     srow -= 1
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_33isolate_expression(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_33isolate_expression = {"isolate_expression", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_33isolate_expression, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_33isolate_expression(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_string = 0;
      PyObject *__pyx_v_start_pos = 0;
      PyObject *__pyx_v_end_pos = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[3] = {0,0,0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("isolate_expression (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_string_2,&__pyx_mstate_global->__pyx_n_u_start_pos,&__pyx_mstate_global->__pyx_n_u_end_pos,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1013, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  3:
            values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1013, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  2:
            values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1013, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1013, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "isolate_expression", 0) < (0)) __PYX_ERR(0, 1013, __pyx_L3_error)
          for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
            if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("isolate_expression", 1, 3, 3, i); __PYX_ERR(0, 1013, __pyx_L3_error) }
          }
        } else if (unlikely(__pyx_nargs != 3)) {
          goto __pyx_L5_argtuple_error;
        } else {
          values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1013, __pyx_L3_error)
          values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1013, __pyx_L3_error)
          values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
          if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1013, __pyx_L3_error)
        }
        __pyx_v_string = ((PyObject*)values[0]);
        __pyx_v_start_pos = values[1];
        __pyx_v_end_pos = values[2];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("isolate_expression", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1013, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.isolate_expression", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_string), (&PyUnicode_Type), 0, "string", 2))) __PYX_ERR(0, 1013, __pyx_L1_error)
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_32isolate_expression(__pyx_self, __pyx_v_string, __pyx_v_start_pos, __pyx_v_end_pos);

      /* function exit code */
      goto __pyx_L0;
      __pyx_L1_error:;
      __pyx_r = NULL;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      goto __pyx_L7_cleaned_up;
      __pyx_L0:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __pyx_L7_cleaned_up:;
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_32isolate_expression(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_start_pos, PyObject *__pyx_v_end_pos) {
      PyObject *__pyx_v_srow = NULL;
      PyObject *__pyx_v_scol = NULL;
      PyObject *__pyx_v_erow = NULL;
      PyObject *__pyx_v_ecol = NULL;
      PyObject *__pyx_v_lines = NULL;
      PyObject *__pyx_v_parts = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      PyObject *__pyx_t_3 = NULL;
      PyObject *(*__pyx_t_4)(PyObject *);
      int __pyx_t_5;
      Py_ssize_t __pyx_t_6;
      Py_ssize_t __pyx_t_7;
      Py_ssize_t __pyx_t_8;
      int __pyx_t_9;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("isolate_expression", 0);

      /* "Cython/Tempita/_tempita.py":1014
 * 
 * def isolate_expression(string: str, start_pos, end_pos) -> str:
 *     srow, scol = start_pos             # <<<<<<<<<<<<<<
 *     srow -= 1
 *     erow, ecol = end_pos
*/
      if ((likely(PyTuple_CheckExact(__pyx_v_start_pos))) || (PyList_CheckExact(__pyx_v_start_pos))) {
        PyObject* sequence = __pyx_v_start_pos;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 1014, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_1);
          __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_2);
        } else {
          __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_1);
          __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1014, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_2);
        }
        #else
        __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1014, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        #endif
      } else {
        Py_ssize_t index = -1;
        __pyx_t_3 = PyObject_GetIter(__pyx_v_start_pos); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1014, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3);
        index = 0; __pyx_t_1 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_1)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_1);
        index = 1; __pyx_t_2 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_2);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_4(__pyx_t_3), 2) < (0)) __PYX_ERR(0, 1014, __pyx_L1_error)
        __pyx_t_4 = NULL;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        goto __pyx_L4_unpacking_done;
        __pyx_L3_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_4 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1014, __pyx_L1_error)
        __pyx_L4_unpacking_done:;
      }
      __pyx_v_srow = __pyx_t_1;
      __pyx_t_1 = 0;
      __pyx_v_scol = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":1015
 * def isolate_expression(string: str, start_pos, end_pos) -> str:
 *     srow, scol = start_pos
 *     srow -= 1             # <<<<<<<<<<<<<<
 *     erow, ecol = end_pos
 *     erow -= 1
*/
      __pyx_t_2 = __Pyx_PyLong_SubtractObjC(__pyx_v_srow, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1015, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_srow, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":1016
 *     srow, scol = start_pos
 *     srow -= 1
 *     erow, ecol = end_pos             # <<<<<<<<<<<<<<
 *     erow -= 1
 *     lines = string.splitlines(True)
*/
      if ((likely(PyTuple_CheckExact(__pyx_v_end_pos))) || (PyList_CheckExact(__pyx_v_end_pos))) {
        PyObject* sequence = __pyx_v_end_pos;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 1016, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_2);
          __pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_1);
        } else {
          __pyx_t_2 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1016, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_2);
          __pyx_t_1 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_1);
        }
        #else
        __pyx_t_2 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1016, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_1 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1016, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        Py_ssize_t index = -1;
        __pyx_t_3 = PyObject_GetIter(__pyx_v_end_pos); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1016, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_3);
        index = 0; __pyx_t_2 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_2)) goto __pyx_L5_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_2);
        index = 1; __pyx_t_1 = __pyx_t_4(__pyx_t_3); if (unlikely(!__pyx_t_1)) goto __pyx_L5_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_1);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_4(__pyx_t_3), 2) < (0)) __PYX_ERR(0, 1016, __pyx_L1_error)
        __pyx_t_4 = NULL;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        goto __pyx_L6_unpacking_done;
        __pyx_L5_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_4 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1016, __pyx_L1_error)
        __pyx_L6_unpacking_done:;
      }
      __pyx_v_erow = __pyx_t_2;
      __pyx_t_2 = 0;
      __pyx_v_ecol = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":1017
 *     srow -= 1
 *     erow, ecol = end_pos
 *     erow -= 1             # <<<<<<<<<<<<<<
 *     lines = string.splitlines(True)
 *     if srow == erow:
*/
      __pyx_t_1 = __Pyx_PyLong_SubtractObjC(__pyx_v_erow, __pyx_mstate_global->__pyx_int_1, 1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_erow, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":1018
 *     erow, ecol = end_pos
 *     erow -= 1
 *     lines = string.splitlines(True)             # <<<<<<<<<<<<<<
 *     if srow == erow:
 *         return lines[srow][scol:ecol]
*/
      __pyx_t_1 = PyUnicode_Splitlines(__pyx_v_string, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!(likely(PyList_CheckExact(__pyx_t_1)) || __Pyx_RaiseUnexpectedTypeError("list", __pyx_t_1))) __PYX_ERR(0, 1018, __pyx_L1_error)
      __pyx_v_lines = ((PyObject*)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":1019
 *     erow -= 1
 *     lines = string.splitlines(True)
 *     if srow == erow:             # <<<<<<<<<<<<<<
 *         return lines[srow][scol:ecol]
 *     parts = [lines[srow][scol:]]
*/
      __pyx_t_5 = __Pyx_PyObject_CompareBoolEq_object_object(__pyx_v_srow, __pyx_v_erow, Py_EQ); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 1019, __pyx_L1_error)
      if (__pyx_t_5) {


        /* "Cython/Tempita/_tempita.py":1020
 *     lines = string.splitlines(True)
 *     if srow == erow:
 *         return lines[srow][scol:ecol]             # <<<<<<<<<<<<<<
 *     parts = [lines[srow][scol:]]
 *     parts.extend(lines[srow+1:erow])
*/
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_lines, __pyx_v_srow); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1020, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_1))) __PYX_ERR(0, 1020, __pyx_L1_error)
        if (unlikely(__pyx_t_1 == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 1020, __pyx_L1_error)
        }
        __Pyx_INCREF(__pyx_v_scol);
        __pyx_t_2 = __pyx_v_scol;
        __pyx_t_5 = (__pyx_t_2 == Py_None);
        if (__pyx_t_5) {

          __pyx_t_6 = 0;
        } else {
          __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1020, __pyx_L1_error)
          __pyx_t_6 = __pyx_t_7;
        }

        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_INCREF(__pyx_v_ecol);
        __pyx_t_2 = __pyx_v_ecol;
        __pyx_t_5 = (__pyx_t_2 == Py_None);
        if (__pyx_t_5) {

          __pyx_t_7 = PY_SSIZE_T_MAX;
        } else {
          __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1020, __pyx_L1_error)
          __pyx_t_7 = __pyx_t_8;
        }

        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        __pyx_t_2 = __Pyx_PyUnicode_Substring(__pyx_t_1, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1020, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;


        {
          PyObject *__pyx_temp;
          {
            __pyx_temp = __pyx_r;
            __pyx_r = ((PyObject*)__pyx_t_2);
          }
          __Pyx_XDECREF(__pyx_temp);
        }
        __pyx_t_2 = 0;
        goto __pyx_L0;

        /* "Cython/Tempita/_tempita.py":1019
 *     erow -= 1
 *     lines = string.splitlines(True)
 *     if srow == erow:             # <<<<<<<<<<<<<<
 *         return lines[srow][scol:ecol]
 *     parts = [lines[srow][scol:]]
*/
      }

      /* "Cython/Tempita/_tempita.py":1021
 *     if srow == erow:
 *         return lines[srow][scol:ecol]
 *     parts = [lines[srow][scol:]]             # <<<<<<<<<<<<<<
 *     parts.extend(lines[srow+1:erow])
 *     if erow < len(lines):
*/
      __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_lines, __pyx_v_srow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1021, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 1021, __pyx_L1_error)
      if (unlikely(__pyx_t_2 == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
        __PYX_ERR(0, 1021, __pyx_L1_error)
      }
      __Pyx_INCREF(__pyx_v_scol);
      __pyx_t_1 = __pyx_v_scol;
      __pyx_t_5 = (__pyx_t_1 == Py_None);
      if (__pyx_t_5) {

        __pyx_t_7 = 0;
      } else {
        __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1021, __pyx_L1_error)
        __pyx_t_7 = __pyx_t_6;
      }

      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyUnicode_Substring(__pyx_t_2, __pyx_t_7, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1021, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_1);
      if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1021, __pyx_L1_error);
      __pyx_t_1 = 0;
      __pyx_v_parts = ((PyObject*)__pyx_t_2);
      __pyx_t_2 = 0;

      /* "Cython/Tempita/_tempita.py":1022
 *         return lines[srow][scol:ecol]
 *     parts = [lines[srow][scol:]]
 *     parts.extend(lines[srow+1:erow])             # <<<<<<<<<<<<<<
 *     if erow < len(lines):
 *         # It'll sometimes give (end_row_past_finish, 0)
*/
      __pyx_t_2 = __Pyx_PyLong_AddObjC(__pyx_v_srow, __pyx_mstate_global->__pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1022, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_5 = (__pyx_t_2 == Py_None);
      if (__pyx_t_5) {

        __pyx_t_7 = 0;
      } else {
        __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1022, __pyx_L1_error)
        __pyx_t_7 = __pyx_t_6;
      }

      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_INCREF(__pyx_v_erow);
      __pyx_t_2 = __pyx_v_erow;
      __pyx_t_5 = (__pyx_t_2 == Py_None);
      if (__pyx_t_5) {

        __pyx_t_6 = PY_SSIZE_T_MAX;
      } else {
        __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1022, __pyx_L1_error)
        __pyx_t_6 = __pyx_t_8;
      }

      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = __Pyx_PyList_GetSlice(__pyx_v_lines, __pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1022, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);


      __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_parts, __pyx_t_2); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1022, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;


      /* "Cython/Tempita/_tempita.py":1023
 *     parts = [lines[srow][scol:]]
 *     parts.extend(lines[srow+1:erow])
 *     if erow < len(lines):             # <<<<<<<<<<<<<<
 *         # It'll sometimes give (end_row_past_finish, 0)
 *         parts.append(lines[erow][:ecol])
*/
      __pyx_t_6 = __Pyx_PyList_GET_SIZE(__pyx_v_lines); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1023, __pyx_L1_error)
      __pyx_t_2 = PyLong_FromSsize_t(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1023, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);

      __pyx_t_5 = __Pyx_PyObject_CompareBoolLt_object_int(__pyx_v_erow, __pyx_t_2, Py_LT); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 1023, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (__pyx_t_5) {


        /* "Cython/Tempita/_tempita.py":1025
 *     if erow < len(lines):
 *         # It'll sometimes give (end_row_past_finish, 0)
 *         parts.append(lines[erow][:ecol])             # <<<<<<<<<<<<<<
 *     return ''.join(parts)
 * 
*/
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_lines, __pyx_v_erow); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1025, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 1025, __pyx_L1_error)
        if (unlikely(__pyx_t_2 == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "\047NoneType\047 object is not subscriptable");
          __PYX_ERR(0, 1025, __pyx_L1_error)
        }
        __Pyx_INCREF(__pyx_v_ecol);
        __pyx_t_1 = __pyx_v_ecol;
        __pyx_t_5 = (__pyx_t_1 == Py_None);
        if (__pyx_t_5) {

          __pyx_t_6 = PY_SSIZE_T_MAX;
        } else {
          __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1025, __pyx_L1_error)
          __pyx_t_6 = __pyx_t_7;
        }

        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_1 = __Pyx_PyUnicode_Substring(__pyx_t_2, 0, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

        __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_parts, __pyx_t_1); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 1025, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;


        /* "Cython/Tempita/_tempita.py":1023
 *     parts = [lines[srow][scol:]]
 *     parts.extend(lines[srow+1:erow])
 *     if erow < len(lines):             # <<<<<<<<<<<<<<
 *         # It'll sometimes give (end_row_past_finish, 0)
 *         parts.append(lines[erow][:ecol])
*/
      }

      /* "Cython/Tempita/_tempita.py":1026
 *         # It'll sometimes give (end_row_past_finish, 0)
 *         parts.append(lines[erow][:ecol])
 *     return ''.join(parts)             # <<<<<<<<<<<<<<
 * 
 * _fill_command_usage = """\
*/
      __pyx_t_1 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u__5, __pyx_v_parts); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1026, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      {
        PyObject *__pyx_temp;
        {
          __pyx_temp = __pyx_r;
          __pyx_r = ((PyObject*)__pyx_t_1);
        }
        __Pyx_XDECREF(__pyx_temp);
      }
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* "Cython/Tempita/_tempita.py":1013
 * 
 * 
 * def isolate_expression(string: str, start_pos, end_pos) -> str:             # <<<<<<<<<<<<<<
 *     srow, scol = start_pos
 *     srow -= 1
*/

      /* function exit code */
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_2);
      __Pyx_XDECREF(__pyx_t_3);
      __Pyx_AddTraceback("Cython.Tempita._tempita.isolate_expression", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_srow);
      __Pyx_XDECREF(__pyx_v_scol);
      __Pyx_XDECREF(__pyx_v_erow);
      __Pyx_XDECREF(__pyx_v_ecol);
      __Pyx_XDECREF(__pyx_v_lines);
      __Pyx_XDECREF(__pyx_v_parts);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    /* "Cython/Tempita/_tempita.py":1036
 * 
 * 
 * def fill_command(args=None):             # <<<<<<<<<<<<<<
 *     import sys
 *     import optparse
*/

    /* Python wrapper */
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_35fill_command(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
    static PyMethodDef __pyx_mdef_6Cython_7Tempita_8_tempita_35fill_command = {"fill_command", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_6Cython_7Tempita_8_tempita_35fill_command, __Pyx_METH_FASTCALL|METH_KEYWORDS, 0};
    static PyObject *__pyx_pw_6Cython_7Tempita_8_tempita_35fill_command(PyObject *__pyx_self, 
#if CYTHON_VECTORCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
      PyObject *__pyx_v_args = 0;
      #if !CYTHON_VECTORCALL
      CYTHON_UNUSED Py_ssize_t __pyx_nargs;
      #endif
      CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
      PyObject* values[1] = {0};
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      PyObject *__pyx_r = 0;
      __Pyx_RefNannyDeclarations
      __Pyx_RefNannySetupContext("fill_command (wrapper)", 0);
      #if !CYTHON_VECTORCALL
      #if CYTHON_ASSUME_SAFE_SIZE
      __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
      #else
      __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
      #endif
      #endif
      __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
      {
        PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_args,0};
        const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
        if (unlikely(__pyx_kwds_len < 0)) __PYX_ERR(0, 1036, __pyx_L3_error)
        if (__pyx_kwds_len > 0) {
          switch (__pyx_nargs) {
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1036, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          const Py_ssize_t kwd_pos_args = __pyx_nargs;
          if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "fill_command", 0) < (0)) __PYX_ERR(0, 1036, __pyx_L3_error)
          if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
        } else {
          switch (__pyx_nargs) {
            case  1:
            values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
            if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1036, __pyx_L3_error)
            CYTHON_FALLTHROUGH;
            case  0: break;
            default: goto __pyx_L5_argtuple_error;
          }
          if (!values[0]) values[0] = __Pyx_NewRef(((PyObject *)Py_None));
        }
        __pyx_v_args = values[0];
      }
      goto __pyx_L6_skip;
      __pyx_L5_argtuple_error:;
      __Pyx_RaiseArgtupleInvalid("fill_command", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 1036, __pyx_L3_error)
      __pyx_L6_skip:;
      goto __pyx_L4_argument_unpacking_done;
      __pyx_L3_error:;
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_AddTraceback("Cython.Tempita._tempita.fill_command", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __Pyx_RefNannyFinishContext();
      return NULL;
      __pyx_L4_argument_unpacking_done:;
      __pyx_r = __pyx_pf_6Cython_7Tempita_8_tempita_34fill_command(__pyx_self, __pyx_v_args);

      /* function exit code */
      for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
        Py_XDECREF(values[__pyx_temp]);
      }
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }

    static PyObject *__pyx_pf_6Cython_7Tempita_8_tempita_34fill_command(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_args) {
      PyObject *__pyx_v_sys = NULL;
      PyObject *__pyx_v_optparse = NULL;
      PyObject *__pyx_v_os = NULL;
      PyObject *__pyx_v_parser = NULL;
      PyObject *__pyx_v_options = NULL;
      PyObject *__pyx_v_template_name = NULL;
      PyObject *__pyx_v_vars = NULL;
      PyObject *__pyx_v_value = NULL;
      PyObject *__pyx_v_name = NULL;
      PyObject *__pyx_v_template_content = NULL;
      PyObject *__pyx_v_f = NULL;
      PyObject *__pyx_v_template = NULL;
      PyObject *__pyx_v_result = NULL;
      PyObject *__pyx_r = NULL;
      __Pyx_RefNannyDeclarations
      PyObject *__pyx_t_1 = NULL;
      PyObject *__pyx_t_2 = NULL;
      int __pyx_t_3;
      PyObject *__pyx_t_4 = NULL;
      PyObject *__pyx_t_5 = NULL;
      size_t __pyx_t_6;
      PyObject *__pyx_t_7 = NULL;
      PyObject *(*__pyx_t_8)(PyObject *);
      Py_ssize_t __pyx_t_9;
      PyObject *(*__pyx_t_10)(PyObject *);
      PyObject *__pyx_t_11 = NULL;
      PyObject *__pyx_t_12 = NULL;
      PyObject *__pyx_t_13 = NULL;
      PyObject *__pyx_t_14 = NULL;
      PyObject *__pyx_t_15 = NULL;
      int __pyx_t_16;
      int __pyx_lineno = 0;
      const char *__pyx_filename = NULL;
      int __pyx_clineno = 0;
      __Pyx_RefNannySetupContext("fill_command", 0);
      __Pyx_INCREF(__pyx_v_args);

      /* "Cython/Tempita/_tempita.py":1037
 * 
 * def fill_command(args=None):
 *     import sys             # <<<<<<<<<<<<<<
 *     import optparse
 *     import os
*/
      __pyx_t_2 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sys, 0, 0, NULL, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1037, __pyx_L1_error)
      __pyx_t_1 = __pyx_t_2;
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_sys = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":1038
 * def fill_command(args=None):
 *     import sys
 *     import optparse             # <<<<<<<<<<<<<<
 *     import os
 *     if args is None:
*/
      __pyx_t_2 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_optparse, 0, 0, NULL, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1038, __pyx_L1_error)
      __pyx_t_1 = __pyx_t_2;
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_optparse = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":1039
 *     import sys
 *     import optparse
 *     import os             # <<<<<<<<<<<<<<
 *     if args is None:
 *         args = sys.argv[1:]
*/
      __pyx_t_2 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_os, 0, 0, NULL, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1039, __pyx_L1_error)
      __pyx_t_1 = __pyx_t_2;
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_os = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "Cython/Tempita/_tempita.py":1040
 *     import optparse
 *     import os
 *     if args is None:             # <<<<<<<<<<<<<<
 *         args = sys.argv[1:]
 *     parser = optparse.OptionParser(
*/
      __pyx_t_3 = (__pyx_v_args == Py_None);
      if (__pyx_t_3) {


        /* "Cython/Tempita/_tempita.py":1041
 *     import os
 *     if args is None:
 *         args = sys.argv[1:]             # <<<<<<<<<<<<<<
 *     parser = optparse.OptionParser(
 *         usage=_fill_command_usage)
*/
        __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sys, __pyx_mstate_global->__pyx_n_u_argv); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1041, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_4 = __Pyx_PyObject_GetSlice(__pyx_t_1, 1, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[2], 1, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1041, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_args, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "Cython/Tempita/_tempita.py":1040
 *     import optparse
 *     import os
 *     if args is None:             # <<<<<<<<<<<<<<
 *         args = sys.argv[1:]
 *     parser = optparse.OptionParser(
*/
      }

      /* "Cython/Tempita/_tempita.py":1042
 *     if args is None:
 *         args = sys.argv[1:]
 *     parser = optparse.OptionParser(             # <<<<<<<<<<<<<<
 *         usage=_fill_command_usage)
 *     parser.add_option(
*/
      __pyx_t_1 = __pyx_v_optparse;
      __Pyx_INCREF(__pyx_t_1);

      /* "Cython/Tempita/_tempita.py":1043
 *         args = sys.argv[1:]
 *     parser = optparse.OptionParser(
 *         usage=_fill_command_usage)             # <<<<<<<<<<<<<<
 *     parser.add_option(
 *         '-o', '--output',
*/
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_fill_command_usage); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1043, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_t_5};
        #if CYTHON_VECTORCALL
        __pyx_t_7 = __pyx_mstate_global->__pyx_tuple[15];
        if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1042, __pyx_L1_error)
        __Pyx_INCREF(__pyx_t_7);
        #else
        {
          PyObject *__pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_usage};
          __pyx_t_7 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+1, 1);
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1042, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        #endif
        __pyx_t_4 = __Pyx_Object_VectorcallMethodKwds((PyObject*)__pyx_mstate_global->__pyx_n_u_OptionParser, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_7);
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1042, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      }
      __pyx_v_parser = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "Cython/Tempita/_tempita.py":1044
 *     parser = optparse.OptionParser(
 *         usage=_fill_command_usage)
 *     parser.add_option(             # <<<<<<<<<<<<<<
 *         '-o', '--output',
 *         dest='output',
*/
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_mstate_global->__pyx_n_u_add_option); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1044, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);

      /* "Cython/Tempita/_tempita.py":1046
 *     parser.add_option(
 *         '-o', '--output',
 *         dest='output',             # <<<<<<<<<<<<<<
 *         metavar="FILENAME",
 *         help="File to write output to (default stdout)")
*/
      __pyx_t_7 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1046, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_dest, __pyx_mstate_global->__pyx_n_u_output_2) < (0)) __PYX_ERR(0, 1046, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_metavar, __pyx_mstate_global->__pyx_n_u_FILENAME) < (0)) __PYX_ERR(0, 1046, __pyx_L1_error)
      if (PyDict_SetItem(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_help, __pyx_mstate_global->__pyx_kp_u_File_to_write_output_to_default) < (0)) __PYX_ERR(0, 1046, __pyx_L1_error)

      /* "Cython/Tempita/_tempita.py":1044
 *     parser = optparse.OptionParser(
 *         usage=_fill_command_usage)
 *     parser.add_option(             # <<<<<<<<<<<<<<
 *         '-o', '--output',
 *         dest='output',
*/
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_mstate_global->__pyx_tuple[16], __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1044, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":1049
 *         metavar="FILENAME",
 *         help="File to write output to (default stdout)")
 *     parser.add_option(             # <<<<<<<<<<<<<<
 *         '--env',
 *         dest='use_env',
*/
      __pyx_t_7 = __pyx_v_parser;
      __Pyx_INCREF(__pyx_t_7);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[5] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_env, __pyx_mstate_global->__pyx_n_u_use_env, __pyx_mstate_global->__pyx_n_u_store_true, __pyx_mstate_global->__pyx_kp_u_Put_the_environment_in_as_top_le};
        #if CYTHON_VECTORCALL
        __pyx_t_4 = __pyx_mstate_global->__pyx_tuple[17];
        if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1049, __pyx_L1_error)
        __Pyx_INCREF(__pyx_t_4);
        #else
        {
          PyObject *__pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_dest, __pyx_mstate_global->__pyx_n_u_action, __pyx_mstate_global->__pyx_n_u_help};
          __pyx_t_4 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 3);
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1049, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
        }
        #endif
        __pyx_t_5 = __Pyx_Object_VectorcallMethodKwds((PyObject*)__pyx_mstate_global->__pyx_n_u_add_option, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_4);
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1049, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":1054
 *         action='store_true',
 *         help="Put the environment in as top-level variables")
 *     options, args = parser.parse_args(args)             # <<<<<<<<<<<<<<
 *     if len(args) < 1:
 *         print('You must give a template filename')
*/
      __pyx_t_4 = __pyx_v_parser;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_args};
        __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_parse_args, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1054, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      }
      if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
        PyObject* sequence = __pyx_t_5;
        Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
        if (unlikely(size != 2)) {
          if (size > 2) __Pyx_RaiseTooManyValuesError(2);
          else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
          __PYX_ERR(0, 1054, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
          __Pyx_INCREF(__pyx_t_4);
          __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1);
          __Pyx_INCREF(__pyx_t_7);
        } else {
          __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1054, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_4);
          __pyx_t_7 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1054, __pyx_L1_error)
          __Pyx_XGOTREF(__pyx_t_7);
        }
        #else
        __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1054, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_7 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1054, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        #endif
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_1 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1054, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_1);
        index = 0; __pyx_t_4 = __pyx_t_8(__pyx_t_1); if (unlikely(!__pyx_t_4)) goto __pyx_L4_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_4);
        index = 1; __pyx_t_7 = __pyx_t_8(__pyx_t_1); if (unlikely(!__pyx_t_7)) goto __pyx_L4_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_7);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_1), 2) < (0)) __PYX_ERR(0, 1054, __pyx_L1_error)
        __pyx_t_8 = NULL;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L5_unpacking_done;
        __pyx_L4_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_8 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1054, __pyx_L1_error)
        __pyx_L5_unpacking_done:;
      }
      __pyx_v_options = __pyx_t_4;
      __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_args, __pyx_t_7);
      __pyx_t_7 = 0;

      /* "Cython/Tempita/_tempita.py":1055
 *         help="Put the environment in as top-level variables")
 *     options, args = parser.parse_args(args)
 *     if len(args) < 1:             # <<<<<<<<<<<<<<
 *         print('You must give a template filename')
 *         sys.exit(2)
*/
      __pyx_t_9 = PyObject_Length(__pyx_v_args); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1055, __pyx_L1_error)
      __pyx_t_3 = (__pyx_t_9 < 1);


      if (__pyx_t_3) {


        /* "Cython/Tempita/_tempita.py":1056
 *     options, args = parser.parse_args(args)
 *     if len(args) < 1:
 *         print('You must give a template filename')             # <<<<<<<<<<<<<<
 *         sys.exit(2)
 *     template_name = args[0]
*/
        __pyx_t_7 = NULL;
        __pyx_t_6 = 1;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_kp_u_You_must_give_a_template_filenam};
          __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1056, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "Cython/Tempita/_tempita.py":1057
 *     if len(args) < 1:
 *         print('You must give a template filename')
 *         sys.exit(2)             # <<<<<<<<<<<<<<
 *     template_name = args[0]
 *     args = args[1:]
*/
        __pyx_t_7 = __pyx_v_sys;
        __Pyx_INCREF(__pyx_t_7);
        __pyx_t_6 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_mstate_global->__pyx_int_2};
          __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_exit_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1057, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
        }
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "Cython/Tempita/_tempita.py":1055
 *         help="Put the environment in as top-level variables")
 *     options, args = parser.parse_args(args)
 *     if len(args) < 1:             # <<<<<<<<<<<<<<
 *         print('You must give a template filename')
 *         sys.exit(2)
*/
      }

      /* "Cython/Tempita/_tempita.py":1058
 *         print('You must give a template filename')
 *         sys.exit(2)
 *     template_name = args[0]             # <<<<<<<<<<<<<<
 *     args = args[1:]
 *     vars = {}
*/
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_args, 0, long, 1, __Pyx_PyLong_From_long, 0, 1, 1, __Pyx_ReferenceSharing_FunctionArgument); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1058, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_v_template_name = __pyx_t_5;
      __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":1059
 *         sys.exit(2)
 *     template_name = args[0]
 *     args = args[1:]             # <<<<<<<<<<<<<<
 *     vars = {}
 *     if options.use_env:
*/
      __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_v_args, 1, 0, NULL, NULL, &__pyx_mstate_global->__pyx_slice[2], 1, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1059, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF_SET(__pyx_v_args, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":1060
 *     template_name = args[0]
 *     args = args[1:]
 *     vars = {}             # <<<<<<<<<<<<<<
 *     if options.use_env:
 *         vars.update(os.environ)
*/
      __pyx_t_5 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1060, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_v_vars = ((PyObject*)__pyx_t_5);
      __pyx_t_5 = 0;

      /* "Cython/Tempita/_tempita.py":1061
 *     args = args[1:]
 *     vars = {}
 *     if options.use_env:             # <<<<<<<<<<<<<<
 *         vars.update(os.environ)
 *     for value in args:
*/
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_options, __pyx_mstate_global->__pyx_n_u_use_env); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1061, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 1061, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (__pyx_t_3) {


        /* "Cython/Tempita/_tempita.py":1062
 *     vars = {}
 *     if options.use_env:
 *         vars.update(os.environ)             # <<<<<<<<<<<<<<
 *     for value in args:
 *         if '=' not in value:
*/
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_os, __pyx_mstate_global->__pyx_n_u_environ); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1062, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyDict_Type__update, __pyx_v_vars, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1062, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "Cython/Tempita/_tempita.py":1061
 *     args = args[1:]
 *     vars = {}
 *     if options.use_env:             # <<<<<<<<<<<<<<
 *         vars.update(os.environ)
 *     for value in args:
*/
      }

      /* "Cython/Tempita/_tempita.py":1063
 *     if options.use_env:
 *         vars.update(os.environ)
 *     for value in args:             # <<<<<<<<<<<<<<
 *         if '=' not in value:
 *             print('Bad argument: %r' % value)
*/
      if (likely(PyList_CheckExact(__pyx_v_args)) || PyTuple_CheckExact(__pyx_v_args)) {
        __pyx_t_7 = __pyx_v_args; __Pyx_INCREF(__pyx_t_7);
        __pyx_t_9 = 0;
        __pyx_t_10 = NULL;
      } else {
        __pyx_t_9 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_v_args); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1063, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_10 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1063, __pyx_L1_error)
      }
      for (;;) {
        if (likely(!__pyx_t_10)) {
          if (likely(PyList_CheckExact(__pyx_t_7))) {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1063, __pyx_L1_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            __pyx_t_5 = __Pyx_PyList_GET_ITEM_REF(__pyx_t_7, __pyx_t_9, __Pyx_ReferenceSharing_OwnStrongReference);
            ++__pyx_t_9;
          } else {
            {
              Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_7);
              #if !CYTHON_ASSUME_SAFE_SIZE
              if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 1063, __pyx_L1_error)
              #endif
              if (__pyx_t_9 >= __pyx_temp) break;
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_9));
            #else
            __pyx_t_5 = __Pyx_PySequence_ITEM(__pyx_t_7, __pyx_t_9);
            #endif
            ++__pyx_t_9;
          }
          if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1063, __pyx_L1_error)
        } else {
          __pyx_t_5 = __pyx_t_10(__pyx_t_7);
          if (unlikely(!__pyx_t_5)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 1063, __pyx_L1_error)
              PyErr_Clear();
            }
            break;
          }
        }
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_5);
        __pyx_t_5 = 0;

        /* "Cython/Tempita/_tempita.py":1064
 *         vars.update(os.environ)
 *     for value in args:
 *         if '=' not in value:             # <<<<<<<<<<<<<<
 *             print('Bad argument: %r' % value)
 *             sys.exit(2)
*/
        __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_mstate_global->__pyx_kp_u__7, __pyx_v_value, Py_NE)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 1064, __pyx_L1_error)
        if (__pyx_t_3) {


          /* "Cython/Tempita/_tempita.py":1065
 *     for value in args:
 *         if '=' not in value:
 *             print('Bad argument: %r' % value)             # <<<<<<<<<<<<<<
 *             sys.exit(2)
 *         name, value = value.split('=', 1)
*/
          __pyx_t_4 = NULL;
          __pyx_t_1 = __Pyx_PyUnicode_FormatSafe(__pyx_mstate_global->__pyx_kp_u_Bad_argument_r, __pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_1};
            __pyx_t_5 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1065, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

          /* "Cython/Tempita/_tempita.py":1066
 *         if '=' not in value:
 *             print('Bad argument: %r' % value)
 *             sys.exit(2)             # <<<<<<<<<<<<<<
 *         name, value = value.split('=', 1)
 *         if name.startswith('py:'):
*/
          __pyx_t_1 = __pyx_v_sys;
          __Pyx_INCREF(__pyx_t_1);
          __pyx_t_6 = 0;
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_int_2};
            __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_exit_2, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1066, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
          }
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

          /* "Cython/Tempita/_tempita.py":1064
 *         vars.update(os.environ)
 *     for value in args:
 *         if '=' not in value:             # <<<<<<<<<<<<<<
 *             print('Bad argument: %r' % value)
 *             sys.exit(2)
*/
        }

        /* "Cython/Tempita/_tempita.py":1067
 *             print('Bad argument: %r' % value)
 *             sys.exit(2)
 *         name, value = value.split('=', 1)             # <<<<<<<<<<<<<<
 *         if name.startswith('py:'):
 *             name = name[:3]
*/
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_mstate_global->__pyx_n_u_split); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1067, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[18], NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1067, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
          PyObject* sequence = __pyx_t_1;
          Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
          if (unlikely(size != 2)) {
            if (size > 2) __Pyx_RaiseTooManyValuesError(2);
            else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
            __PYX_ERR(0, 1067, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
            __Pyx_INCREF(__pyx_t_5);
            __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
            __Pyx_INCREF(__pyx_t_4);
          } else {
            __pyx_t_5 = __Pyx_PyList_GET_ITEM_REF(sequence, 0, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1067, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_5);
            __pyx_t_4 = __Pyx_PyList_GET_ITEM_REF(sequence, 1, __Pyx_ReferenceSharing_SharedReference);
            if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1067, __pyx_L1_error)
            __Pyx_XGOTREF(__pyx_t_4);
          }
          #else
          __pyx_t_5 = __Pyx_PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1067, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_4 = __Pyx_PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1067, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_11 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1067, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_11);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_11);
          index = 0; __pyx_t_5 = __pyx_t_8(__pyx_t_11); if (unlikely(!__pyx_t_5)) goto __pyx_L11_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_5);
          index = 1; __pyx_t_4 = __pyx_t_8(__pyx_t_11); if (unlikely(!__pyx_t_4)) goto __pyx_L11_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_11), 2) < (0)) __PYX_ERR(0, 1067, __pyx_L1_error)
          __pyx_t_8 = NULL;
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          goto __pyx_L12_unpacking_done;
          __pyx_L11_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          __pyx_t_8 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 1067, __pyx_L1_error)
          __pyx_L12_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5);
        __pyx_t_5 = 0;
        __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "Cython/Tempita/_tempita.py":1068
 *             sys.exit(2)
 *         name, value = value.split('=', 1)
 *         if name.startswith('py:'):             # <<<<<<<<<<<<<<
 *             name = name[:3]
 *             value = eval(value)
*/
        __pyx_t_4 = __pyx_v_name;
        __Pyx_INCREF(__pyx_t_4);
        __pyx_t_6 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_py_2};
          __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_startswith, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1068, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 1068, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (__pyx_t_3) {


          /* "Cython/Tempita/_tempita.py":1069
 *         name, value = value.split('=', 1)
 *         if name.startswith('py:'):
 *             name = name[:3]             # <<<<<<<<<<<<<<
 *             value = eval(value)
 *         vars[name] = value
*/
          __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_name, 0, 3, NULL, NULL, &__pyx_mstate_global->__pyx_slice[3], 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1);
          __pyx_t_1 = 0;

          /* "Cython/Tempita/_tempita.py":1070
 *         if name.startswith('py:'):
 *             name = name[:3]
 *             value = eval(value)             # <<<<<<<<<<<<<<
 *         vars[name] = value
 *     if template_name == '-':
*/
          __pyx_t_4 = NULL;
          __pyx_t_5 = __Pyx_Globals(); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1070, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_11 = __Pyx_PyDict_NewPresized(14); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1070, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_11);
          if (__pyx_v_args) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_args, __pyx_v_args) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_f) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_f, __pyx_v_f) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_name) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_name, __pyx_v_name) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_options) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_options, __pyx_v_options) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_optparse) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_optparse, __pyx_v_optparse) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_os) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_os, __pyx_v_os) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_parser) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_parser, __pyx_v_parser) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_result) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_result, __pyx_v_result) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_sys) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_sys, __pyx_v_sys) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_template) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_template, __pyx_v_template) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_template_content) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_template_content, __pyx_v_template_content) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_template_name) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_template_name_2, __pyx_v_template_name) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_value) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_value, __pyx_v_value) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          if (__pyx_v_vars) {
            if (PyDict_SetItem(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_vars, __pyx_v_vars) < (0)) __PYX_ERR(0, 1070, __pyx_L1_error)
          }
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_value, __pyx_t_5, __pyx_t_11};
            __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_eval, __pyx_callargs+__pyx_t_6, (4-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1070, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
          }
          __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_1);
          __pyx_t_1 = 0;

          /* "Cython/Tempita/_tempita.py":1068
 *             sys.exit(2)
 *         name, value = value.split('=', 1)
 *         if name.startswith('py:'):             # <<<<<<<<<<<<<<
 *             name = name[:3]
 *             value = eval(value)
*/
        }

        /* "Cython/Tempita/_tempita.py":1071
 *             name = name[:3]
 *             value = eval(value)
 *         vars[name] = value             # <<<<<<<<<<<<<<
 *     if template_name == '-':
 *         template_content = sys.stdin.read()
*/
        if (unlikely((PyDict_SetItem(__pyx_v_vars, __pyx_v_name, __pyx_v_value) < 0))) __PYX_ERR(0, 1071, __pyx_L1_error)

        /* "Cython/Tempita/_tempita.py":1063
 *     if options.use_env:
 *         vars.update(os.environ)
 *     for value in args:             # <<<<<<<<<<<<<<
 *         if '=' not in value:
 *             print('Bad argument: %r' % value)
*/
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "Cython/Tempita/_tempita.py":1072
 *             value = eval(value)
 *         vars[name] = value
 *     if template_name == '-':             # <<<<<<<<<<<<<<
 *         template_content = sys.stdin.read()
 *         template_name = '<stdin>'
*/
      __pyx_t_3 = (__Pyx_PyObject_Equals_obj_ch45(__pyx_v_template_name, __pyx_mstate_global->__pyx_kp_u__24, Py_EQ)); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 1072, __pyx_L1_error)
      if (__pyx_t_3) {


        /* "Cython/Tempita/_tempita.py":1073
 *         vars[name] = value
 *     if template_name == '-':
 *         template_content = sys.stdin.read()             # <<<<<<<<<<<<<<
 *         template_name = '<stdin>'
 *     else:
*/
        __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_sys, __pyx_mstate_global->__pyx_n_u_stdin); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1073, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
        __pyx_t_1 = __pyx_t_11;
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_6 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
          __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1073, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        }
        __pyx_v_template_content = __pyx_t_7;
        __pyx_t_7 = 0;

        /* "Cython/Tempita/_tempita.py":1074
 *     if template_name == '-':
 *         template_content = sys.stdin.read()
 *         template_name = '<stdin>'             # <<<<<<<<<<<<<<
 *     else:
 *         with open(template_name, 'rb') as f:
*/
        __Pyx_INCREF(__pyx_mstate_global->__pyx_kp_u_stdin_2);
        __Pyx_DECREF_SET(__pyx_v_template_name, __pyx_mstate_global->__pyx_kp_u_stdin_2);

        /* "Cython/Tempita/_tempita.py":1072
 *             value = eval(value)
 *         vars[name] = value
 *     if template_name == '-':             # <<<<<<<<<<<<<<
 *         template_content = sys.stdin.read()
 *         template_name = '<stdin>'
*/
        goto __pyx_L15;
      }

      /* "Cython/Tempita/_tempita.py":1076
 *         template_name = '<stdin>'
 *     else:
 *         with open(template_name, 'rb') as f:             # <<<<<<<<<<<<<<
 *             template_content = f.read()
 *     template = Template(template_content, name=template_name)
*/
      /*else*/ {
        /*with:*/ {
          __pyx_t_11 = NULL;
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[3] = {__pyx_t_11, __pyx_v_template_name, __pyx_mstate_global->__pyx_n_u_rb};
            __pyx_t_7 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1076, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
          }
          __pyx_t_2 = __Pyx_PyObject_LookupSpecial(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_exit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1076, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_1 = NULL;
          __pyx_t_5 = __Pyx_PyObject_LookupSpecial(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_enter); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1076, __pyx_L16_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_6 = 1;
          #if CYTHON_UNPACK_METHODS
          if (likely(PyMethod_Check(__pyx_t_5))) {
            __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
            assert(__pyx_t_1);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
            __pyx_t_6 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_1, NULL};
            __pyx_t_11 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1076, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_11);
          }
          __pyx_t_5 = __pyx_t_11;
          __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          /*try:*/ {
            {
              __Pyx_PyThreadState_declare
              __Pyx_PyThreadState_assign
              __Pyx_ExceptionSave(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
              __Pyx_XGOTREF(__pyx_t_12);
              __Pyx_XGOTREF(__pyx_t_13);
              __Pyx_XGOTREF(__pyx_t_14);
              /*try:*/ {
                __pyx_v_f = __pyx_t_5;
                __pyx_t_5 = 0;

                /* "Cython/Tempita/_tempita.py":1077
 *     else:
 *         with open(template_name, 'rb') as f:
 *             template_content = f.read()             # <<<<<<<<<<<<<<
 *     template = Template(template_content, name=template_name)
 *     result = template.substitute(vars)
*/
                __pyx_t_7 = __pyx_v_f;
                __Pyx_INCREF(__pyx_t_7);
                __pyx_t_6 = 0;
                {
                  PyObject *__pyx_callargs[2] = {__pyx_t_7, NULL};
                  __pyx_t_5 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_read, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                  __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
                  if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1077, __pyx_L20_error)
                  __Pyx_GOTREF(__pyx_t_5);
                }
                __pyx_v_template_content = __pyx_t_5;
                __pyx_t_5 = 0;

                /* "Cython/Tempita/_tempita.py":1076
 *         template_name = '<stdin>'
 *     else:
 *         with open(template_name, 'rb') as f:             # <<<<<<<<<<<<<<
 *             template_content = f.read()
 *     template = Template(template_content, name=template_name)
*/
              }
              __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
              goto __pyx_L25_try_end;
              __pyx_L20_error:;
              __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
              __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
              __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
              __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
              __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
              /*except:*/ {
                __Pyx_AddTraceback("Cython.Tempita._tempita.fill_command", __pyx_clineno, __pyx_lineno, __pyx_filename);
                if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_7, &__pyx_t_11) < 0) __PYX_ERR(0, 1076, __pyx_L22_except_error)
                __Pyx_XGOTREF(__pyx_t_5);
                __Pyx_XGOTREF(__pyx_t_7);
                __Pyx_XGOTREF(__pyx_t_11);
                {
                  PyObject* __pyx_temp[3] = {__pyx_t_5, __pyx_t_7, __pyx_t_11};
                  __pyx_t_1 = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1076, __pyx_L22_except_error)
                  __Pyx_GOTREF(__pyx_t_1);
                }
                __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL);
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
                if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1076, __pyx_L22_except_error)
                __Pyx_GOTREF(__pyx_t_15);
                __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_15);
                __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
                if (__pyx_t_3 < (0)) __PYX_ERR(0, 1076, __pyx_L22_except_error)
                __pyx_t_16 = (!__pyx_t_3);


                if (unlikely(__pyx_t_16)) {

                  __Pyx_GIVEREF(__pyx_t_5);
                  __Pyx_GIVEREF(__pyx_t_7);
                  __Pyx_XGIVEREF(__pyx_t_11);
                  __Pyx_ErrRestoreWithState(__pyx_t_5, __pyx_t_7, __pyx_t_11);
                  __pyx_t_5 = 0;  __pyx_t_7 = 0;  __pyx_t_11 = 0; 
                  __PYX_ERR(0, 1076, __pyx_L22_except_error)
                }
                __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
                __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
                __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
                goto __pyx_L21_exception_handled;
              }
              __pyx_L22_except_error:;
              __Pyx_XGIVEREF(__pyx_t_12);
              __Pyx_XGIVEREF(__pyx_t_13);
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14);
              goto __pyx_L1_error;
              __pyx_L21_exception_handled:;
              __Pyx_XGIVEREF(__pyx_t_12);
              __Pyx_XGIVEREF(__pyx_t_13);
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14);
              __pyx_L25_try_end:;
            }
          }
          /*finally:*/ {
            /*normal exit:*/{
              if (__pyx_t_2) {
                __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[2], NULL);
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1076, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_14);
                __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
              }
              goto __pyx_L19;
            }
            __pyx_L19:;
          }
          goto __pyx_L29;
          __pyx_L16_error:;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          goto __pyx_L1_error;
          __pyx_L29:;
        }
      }
      __pyx_L15:;

      /* "Cython/Tempita/_tempita.py":1078
 *         with open(template_name, 'rb') as f:
 *             template_content = f.read()
 *     template = Template(template_content, name=template_name)             # <<<<<<<<<<<<<<
 *     result = template.substitute(vars)
 *     if options.output:
*/
      __pyx_t_7 = NULL;
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_Template); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1078, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(!__pyx_v_template_content)) { __Pyx_RaiseUnboundLocalError("template_content"); __PYX_ERR(0, 1078, __pyx_L1_error) }
      __pyx_t_6 = 1;
      #if CYTHON_UNPACK_METHODS
      if (unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
        assert(__pyx_t_7);
        PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(__pyx__function);
        __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
        __pyx_t_6 = 0;
      }
      #endif
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_v_template_content, __pyx_v_template_name};
        #if CYTHON_VECTORCALL
        __pyx_t_1 = __pyx_mstate_global->__pyx_tuple[8];
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error)
        __Pyx_INCREF(__pyx_t_1);
        #else
        {
          PyObject *__pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_name};
          __pyx_t_1 = __Pyx_MakeKwargDict(__pyx_temp, __pyx_callargs+2, 1);
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        #endif
        __pyx_t_11 = __Pyx_Object_VectorcallKwds((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET), __pyx_t_1);
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1078, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
      }
      __pyx_v_template = __pyx_t_11;
      __pyx_t_11 = 0;

      /* "Cython/Tempita/_tempita.py":1079
 *             template_content = f.read()
 *     template = Template(template_content, name=template_name)
 *     result = template.substitute(vars)             # <<<<<<<<<<<<<<
 *     if options.output:
 *         with open(options.output, 'wb') as f:
*/
      __pyx_t_5 = __pyx_v_template;
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_6 = 0;
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_v_vars};
        __pyx_t_11 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_substitute, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1079, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_11);
      }
      __pyx_v_result = __pyx_t_11;
      __pyx_t_11 = 0;

      /* "Cython/Tempita/_tempita.py":1080
 *     template = Template(template_content, name=template_name)
 *     result = template.substitute(vars)
 *     if options.output:             # <<<<<<<<<<<<<<
 *         with open(options.output, 'wb') as f:
 *             f.write(result)
*/
      __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_options, __pyx_mstate_global->__pyx_n_u_output_2); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1080, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __pyx_t_16 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely((__pyx_t_16 < 0))) __PYX_ERR(0, 1080, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      if (__pyx_t_16) {


        /* "Cython/Tempita/_tempita.py":1081
 *     result = template.substitute(vars)
 *     if options.output:
 *         with open(options.output, 'wb') as f:             # <<<<<<<<<<<<<<
 *             f.write(result)
 *     else:
*/
        /*with:*/ {
          __pyx_t_5 = NULL;
          __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_options, __pyx_mstate_global->__pyx_n_u_output_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_6 = 1;
          {
            PyObject *__pyx_callargs[3] = {__pyx_t_5, __pyx_t_1, __pyx_mstate_global->__pyx_n_u_wb};
            __pyx_t_11 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_open, __pyx_callargs+__pyx_t_6, (3-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1081, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_11);
          }
          __pyx_t_2 = __Pyx_PyObject_LookupSpecial(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_exit); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1081, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __pyx_t_5 = NULL;
          __pyx_t_7 = __Pyx_PyObject_LookupSpecial(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_enter); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1081, __pyx_L31_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_6 = 1;
          #if CYTHON_UNPACK_METHODS
          if (likely(PyMethod_Check(__pyx_t_7))) {
            __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_7);
            assert(__pyx_t_5);
            PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(__pyx__function);
            __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
            __pyx_t_6 = 0;
          }
          #endif
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
            __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L31_error)
            __Pyx_GOTREF(__pyx_t_1);
          }
          __pyx_t_7 = __pyx_t_1;
          __pyx_t_1 = 0;
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
          /*try:*/ {
            {
              __Pyx_PyThreadState_declare
              __Pyx_PyThreadState_assign
              __Pyx_ExceptionSave(&__pyx_t_14, &__pyx_t_13, &__pyx_t_12);
              __Pyx_XGOTREF(__pyx_t_14);
              __Pyx_XGOTREF(__pyx_t_13);
              __Pyx_XGOTREF(__pyx_t_12);
              /*try:*/ {
                __Pyx_XDECREF_SET(__pyx_v_f, __pyx_t_7);
                __pyx_t_7 = 0;

                /* "Cython/Tempita/_tempita.py":1082
 *     if options.output:
 *         with open(options.output, 'wb') as f:
 *             f.write(result)             # <<<<<<<<<<<<<<
 *     else:
 *         sys.stdout.write(result)
*/
                __pyx_t_11 = __pyx_v_f;
                __Pyx_INCREF(__pyx_t_11);
                __pyx_t_6 = 0;
                {
                  PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_v_result};
                  __pyx_t_7 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
                  __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
                  if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1082, __pyx_L35_error)
                  __Pyx_GOTREF(__pyx_t_7);
                }
                __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

                /* "Cython/Tempita/_tempita.py":1081
 *     result = template.substitute(vars)
 *     if options.output:
 *         with open(options.output, 'wb') as f:             # <<<<<<<<<<<<<<
 *             f.write(result)
 *     else:
*/
              }
              __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
              goto __pyx_L40_try_end;
              __pyx_L35_error:;
              __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
              __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
              __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
              __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
              __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
              /*except:*/ {
                __Pyx_AddTraceback("Cython.Tempita._tempita.fill_command", __pyx_clineno, __pyx_lineno, __pyx_filename);
                if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_11, &__pyx_t_1) < 0) __PYX_ERR(0, 1081, __pyx_L37_except_error)
                __Pyx_XGOTREF(__pyx_t_7);
                __Pyx_XGOTREF(__pyx_t_11);
                __Pyx_XGOTREF(__pyx_t_1);
                {
                  PyObject* __pyx_temp[3] = {__pyx_t_7, __pyx_t_11, __pyx_t_1};
                  __pyx_t_5 = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1081, __pyx_L37_except_error)
                  __Pyx_GOTREF(__pyx_t_5);
                }
                __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL);
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
                if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 1081, __pyx_L37_except_error)
                __Pyx_GOTREF(__pyx_t_15);
                __pyx_t_16 = __Pyx_PyObject_IsTrue(__pyx_t_15);
                __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
                if (__pyx_t_16 < (0)) __PYX_ERR(0, 1081, __pyx_L37_except_error)
                __pyx_t_3 = (!__pyx_t_16);


                if (unlikely(__pyx_t_3)) {

                  __Pyx_GIVEREF(__pyx_t_7);
                  __Pyx_GIVEREF(__pyx_t_11);
                  __Pyx_XGIVEREF(__pyx_t_1);
                  __Pyx_ErrRestoreWithState(__pyx_t_7, __pyx_t_11, __pyx_t_1);
                  __pyx_t_7 = 0;  __pyx_t_11 = 0;  __pyx_t_1 = 0; 
                  __PYX_ERR(0, 1081, __pyx_L37_except_error)
                }
                __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
                __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
                __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
                goto __pyx_L36_exception_handled;
              }
              __pyx_L37_except_error:;
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_XGIVEREF(__pyx_t_13);
              __Pyx_XGIVEREF(__pyx_t_12);
              __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_13, __pyx_t_12);
              goto __pyx_L1_error;
              __pyx_L36_exception_handled:;
              __Pyx_XGIVEREF(__pyx_t_14);
              __Pyx_XGIVEREF(__pyx_t_13);
              __Pyx_XGIVEREF(__pyx_t_12);
              __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_13, __pyx_t_12);
              __pyx_L40_try_end:;
            }
          }
          /*finally:*/ {
            /*normal exit:*/{
              if (__pyx_t_2) {
                __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[2], NULL);
                __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
                if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1081, __pyx_L1_error)
                __Pyx_GOTREF(__pyx_t_12);
                __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
              }
              goto __pyx_L34;
            }
            __pyx_L34:;
          }
          goto __pyx_L44;
          __pyx_L31_error:;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          goto __pyx_L1_error;
          __pyx_L44:;
        }

        /* "Cython/Tempita/_tempita.py":1080
 *     template = Template(template_content, name=template_name)
 *     result = template.substitute(vars)
 *     if options.output:             # <<<<<<<<<<<<<<
 *         with open(options.output, 'wb') as f:
 *             f.write(result)
*/
        goto __pyx_L30;
      }

      /* "Cython/Tempita/_tempita.py":1084
 *             f.write(result)
 *     else:
 *         sys.stdout.write(result)             # <<<<<<<<<<<<<<
 * 
 * if __name__ == '__main__':
*/
      /*else*/ {
        __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_sys, __pyx_mstate_global->__pyx_n_u_stdout); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1084, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_11 = __pyx_t_7;
        __Pyx_INCREF(__pyx_t_11);
        __pyx_t_6 = 0;
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_v_result};
          __pyx_t_1 = __Pyx_PyObject_FastCallMethod((PyObject*)__pyx_mstate_global->__pyx_n_u_write, __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (1*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
        }
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      }
      __pyx_L30:;

      /* "Cython/Tempita/_tempita.py":1036
 * 
 * 
 * def fill_command(args=None):             # <<<<<<<<<<<<<<
 *     import sys
 *     import optparse
*/

      /* function exit code */
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;
      __pyx_L1_error:;
      __Pyx_XDECREF(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_7);
      __Pyx_XDECREF(__pyx_t_11);
      __Pyx_AddTraceback("Cython.Tempita._tempita.fill_command", __pyx_clineno, __pyx_lineno, __pyx_filename);
      __pyx_r = NULL;
      __pyx_L0:;
      __Pyx_XDECREF(__pyx_v_sys);
      __Pyx_XDECREF(__pyx_v_optparse);
      __Pyx_XDECREF(__pyx_v_os);
      __Pyx_XDECREF(__pyx_v_parser);
      __Pyx_XDECREF(__pyx_v_options);
      __Pyx_XDECREF(__pyx_v_template_name);
      __Pyx_XDECREF(__pyx_v_vars);
      __Pyx_XDECREF(__pyx_v_value);
      __Pyx_XDECREF(__pyx_v_name);
      __Pyx_XDECREF(__pyx_v_template_content);
      __Pyx_XDECREF(__pyx_v_f);
      __Pyx_XDECREF(__pyx_v_template);
      __Pyx_XDECREF(__pyx_v_result);
      __Pyx_XDECREF(__pyx_v_args);
      __Pyx_XGIVEREF(__pyx_r);
      __Pyx_RefNannyFinishContext();
      return __pyx_r;
    }
/* #### Code section: module_exttypes ### */

static PyObject *__pyx_tp_new__initialisation_6Cython_7Tempita_8_tempita___pyx_defaults(PyObject *o, 
#if CYTHON_VECTORCALL_TPNEW
    CYTHON_UNUSED PyObject *const *args, CYTHON_UNUSED Py_ssize_t nargs, CYTHON_UNUSED PyObject *kwnames
#else
    CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k
#endif
) {
  return o;
}

static PyObject *__pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults(PyTypeObject *t, 
#if CYTHON_VECTORCALL_TPNEW
    PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames
#else
    PyObject *a, PyObject *k
#endif
) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 1);
  if (unlikely(!o)) return 0;
  return __pyx_tp_new__initialisation_6Cython_7Tempita_8_tempita___pyx_defaults(o, 
#if CYTHON_VECTORCALL_TPNEW
    args, nargs, kwnames
#else
    a, k
#endif
);
}

#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_defaults(PyTypeObject *t, PyObject *a, PyObject *k) {
  return __Pyx_CallTpnewAsVectorcall(__pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults, t, a, k);
}
#endif

#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults(PyObject *t, PyObject *const *args, size_t nargsf, PyObject *kwnames) {
  if (unlikely((PyTypeObject*)t != __pyx_mstate_global->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults || __Pyx_PyType_HasFeature((PyTypeObject*)t, Py_TPFLAGS_IS_ABSTRACT))) {
    return __Pyx_CallNewInitFromVectorcall((PyTypeObject*)t, args, nargsf, kwnames);
  }
  Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
  PyObject *o = __pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults((PyTypeObject*)t, args, nargs, kwnames);
  return o;
}
#endif

static void __pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_defaults(PyObject *o) {
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_defaults) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->arg0);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_6Cython_7Tempita_8_tempita___pyx_defaults(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->arg0) {
    e = (*v)(p->arg0, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6Cython_7Tempita_8_tempita___pyx_defaults(PyObject *o) {
  PyObject* tmp;
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  tmp = ((PyObject*)p->arg0);
  p->arg0 = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_defaults},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6Cython_7Tempita_8_tempita___pyx_defaults},
  {Py_tp_clear, (void *)__pyx_tp_clear_6Cython_7Tempita_8_tempita___pyx_defaults},
  {Py_tp_new, (void *)__pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_defaults},
  #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) && (!CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x030E0000)
  #if CYTHON_VECTORCALL_TPNEW
  {Py_tp_vectorcall, (void *)__pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults},
  #endif
  #endif
  {0, 0},
};
static PyType_Spec __pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults_spec = {
  "Cython.Tempita._tempita.__pyx_defaults",
  sizeof(struct __pyx_defaults),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults_slots,
};
#else

static PyTypeObject __pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults = {
  PyVarObject_HEAD_INIT(0, 0)
  "Cython.Tempita._tempita.""__pyx_defaults", /*tp_name*/
  sizeof(struct __pyx_defaults), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_defaults, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6Cython_7Tempita_8_tempita___pyx_defaults, /*tp_traverse*/
  __pyx_tp_clear_6Cython_7Tempita_8_tempita___pyx_defaults, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_defaults, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) && (!CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x030E0000)
  #if CYTHON_VECTORCALL_TPNEW
  __pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_defaults, /*tp_vectorcall*/
  #else
  NULL, /*tp_vectorcall*/
  #endif
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyObject *__pyx_tp_new__initialisation_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyObject *o, 
#if CYTHON_VECTORCALL_TPNEW
    CYTHON_UNUSED PyObject *const *args, CYTHON_UNUSED Py_ssize_t nargs, CYTHON_UNUSED PyObject *kwnames
#else
    CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k
#endif
) {
  return o;
}

static PyObject *__pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyTypeObject *t, 
#if CYTHON_VECTORCALL_TPNEW
    PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames
#else
    PyObject *a, PyObject *k
#endif
) {
  PyObject *o;
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature > 0) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(t, __pyx_mstate_global->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, sizeof(struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature))))
  {
    o = (PyObject*)__pyx_mstate_global->__pyx_freelist_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature[--__pyx_mstate_global->__pyx_freecount_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature];
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(Py_TYPE(o));
    #endif
    memset(o, 0, sizeof(struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature));
    #if CYTHON_COMPILING_IN_LIMITED_API
    (void) PyObject_Init(o, t);
    #else
    (void) PyObject_INIT(o, t);
    #endif
    PyObject_GC_Track(o);
  } else
  #endif
  {
    o = __Pyx_AllocateExtensionType(t, 1);
  }
  if (unlikely(!o)) return 0;
  return __pyx_tp_new__initialisation_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(o, 
#if CYTHON_VECTORCALL_TPNEW
    args, nargs, kwnames
#else
    a, k
#endif
);
}

#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyTypeObject *t, PyObject *a, PyObject *k) {
  return __Pyx_CallTpnewAsVectorcall(__pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, t, a, k);
}
#endif

#if CYTHON_VECTORCALL_TPNEW
static PyObject *__pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyObject *t, PyObject *const *args, size_t nargsf, PyObject *kwnames) {
  if (unlikely((PyTypeObject*)t != __pyx_mstate_global->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature || __Pyx_PyType_HasFeature((PyTypeObject*)t, Py_TPFLAGS_IS_ABSTRACT))) {
    return __Pyx_CallNewInitFromVectorcall((PyTypeObject*)t, args, nargsf, kwnames);
  }
  Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
  PyObject *o = __pyx_tp_new_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature((PyTypeObject*)t, args, nargs, kwnames);
  return o;
}
#endif

static void __pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyObject *o) {
  struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *p = (struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->__pyx_v_tokens);
  #if CYTHON_USE_FREELISTS
  if (likely((int)(__pyx_mstate_global->__pyx_freecount_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature < 8) & __PYX_CHECK_FINAL_TYPE_FOR_FREELISTS(Py_TYPE(o), __pyx_mstate_global->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, sizeof(struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature))))
  {
    __pyx_mstate_global->__pyx_freelist_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature[__pyx_mstate_global->__pyx_freecount_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature++] = ((struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *)o);
  } else
  #endif
  {
    PyTypeObject *tp = Py_TYPE(o);
    #if CYTHON_USE_TYPE_SLOTS
    (*tp->tp_free)(o);
    #else
    {
      freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
      if (tp_free) tp_free(o);
    }
    #endif
    #if CYTHON_USE_TYPE_SPECS
    Py_DECREF(tp);
    #endif
  }
}

static int __pyx_tp_traverse_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *p = (struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->__pyx_v_tokens) {
    e = (*v)(p->__pyx_v_tokens, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *p = (struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature *)o;
  tmp = ((PyObject*)p->__pyx_v_tokens);
  p->__pyx_v_tokens = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature},
  {Py_tp_clear, (void *)__pyx_tp_clear_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature},
  {Py_tp_new, (void *)__pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature},
  #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) && (!CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x030E0000)
  #if CYTHON_VECTORCALL_TPNEW
  {Py_tp_vectorcall, (void *)__pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature},
  #endif
  #endif
  {0, 0},
};
static PyType_Spec __pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature_spec = {
  "Cython.Tempita._tempita.__pyx_scope_struct__parse_signature",
  sizeof(struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_HAVE_GC,
  __pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature_slots,
};
#else

static PyTypeObject __pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature = {
  PyVarObject_HEAD_INIT(0, 0)
  "Cython.Tempita._tempita.""__pyx_scope_struct__parse_signature", /*tp_name*/
  sizeof(struct __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, /*tp_traverse*/
  __pyx_tp_clear_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800) && (!CYTHON_COMPILING_IN_LIMITED_API || __PYX_LIMITED_VERSION_HEX >= 0x030E0000)
  #if CYTHON_VECTORCALL_TPNEW
  __pyx_tp_vectorcall_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature, /*tp_vectorcall*/
  #else
  NULL, /*tp_vectorcall*/
  #endif
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitAfterSharedUtility(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Exttype___pyx_defaults(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Exttype___pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_Shared_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_Shared_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Shared_function_import_code", 0);
  /*--- Shared function import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("Cython._shared"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_PyObject_PyMethodDef_ml_int_flag);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 1629;
    void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__Pyx_CyFunction_New, (void (**)(void))&__Pyx_Py3MetaclassPrepare, (void (**)(void))&__Pyx_Py3ClassCreate, (void (**)(void))&__Pyx__Import, (void (**)(void))&__Pyx_PEP560_update_bases, (void (**)(void))&__Pyx_ImportFrom, (void (**)(void))&__Pyx_PyUnicode_Join, (void (**)(void))&__Pyx_Get_CyFunction_Type, (void (**)(void))&__Pyx_ParseKeywordsTuple, (void (**)(void))&__Pyx_ParseKeywordDictToDict, (void (**)(void))&__Pyx_ParseKeywordDict, (void (**)(void))&__Pyx_PyType_Ready, (void (**)(void))&__Pyx_TryUnpackUnboundCMethod, (void (**)(void))&__Pyx_ArgTypeError, (void (**)(void))&__Pyx_PyBuiltin_Invalid, (void (**)(void))&__Pyx_Raise, (void (**)(void))&__Pyx_RaiseArgtupleInvalid, (void (**)(void)) NULL};
    void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportFunction_3_3_0(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_Global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_Variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_Function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_Exttype___pyx_defaults(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Exttype___pyx_defaults", 0);
  /*--- Exttype __pyx_defaults ---*/
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults)) __PYX_ERR(0, 154, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults = &__pyx_type_6Cython_7Tempita_8_tempita___pyx_defaults;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults) < (0)) __PYX_ERR(0, 154, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults->tp_dictoffset && __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_Exttype___pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Exttype___pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature", 0);
  /*--- Exttype __pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature ---*/
  #if CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature)) __PYX_ERR(0, 935, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature = &__pyx_type_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature) < (0)) __PYX_ERR(0, 935, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature->tp_dictoffset && __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_Type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_Variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_Function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_Function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec__tempita(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec__tempita},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "_tempita",
      __pyx_k_A_small_templating_language_Thi, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit__tempita(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit__tempita(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x030A0000 &&\
      (defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            if (!PyErr_ExceptionMatches(PyExc_Exception)) {
                goto bad; // BaseException
            }
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x030A0000 &&\
      (defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec__tempita(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module '_tempita' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "_tempita" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
    if (PyErr_ExceptionMatches(PyExc_Exception)) {
      PyErr_Clear();
      __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
    }
    if (!__Pyx_RefNanny)
        Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  
__Pyx_RefNannySetupContext("PyInit__tempita", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_Cython__Tempita___tempita) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "Cython.Tempita._tempita")) {
      if (unlikely((PyDict_SetItemString(modules, "Cython.Tempita._tempita", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_Global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_Variable_export_code(__pyx_mstate);
  (void)__Pyx_modinit_Function_export_code(__pyx_mstate);
  /*--- Type init code ---*/
  if (unlikely((__Pyx_modinit_Shared_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_Exttype___pyx_defaults(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_Exttype___pyx_obj_6Cython_7Tempita_8_tempita___pyx_scope_struct__parse_signature(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_Type_import_code(__pyx_mstate);
  (void)__Pyx_modinit_Variable_import_code(__pyx_mstate);
  (void)__Pyx_modinit_Function_import_code(__pyx_mstate);
  if (__Pyx_InitAfterSharedUtility() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Execution code ---*/

  /* "Cython/Tempita/_tempita.py":34
 * import cython
 * 
 * import re             # <<<<<<<<<<<<<<
 * import sys
 * import os
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_re, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_re, __pyx_t_2) < (0)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":35
 * 
 * import re
 * import sys             # <<<<<<<<<<<<<<
 * import os
 * import tokenize
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_sys, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 35, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_sys, __pyx_t_2) < (0)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":36
 * import re
 * import sys
 * import os             # <<<<<<<<<<<<<<
 * import tokenize
 * from io import StringIO
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_os, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_os, __pyx_t_2) < (0)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":37
 * import sys
 * import os
 * import tokenize             # <<<<<<<<<<<<<<
 * from io import StringIO
 * 
*/
  __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_tokenize, 0, 0, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_tokenize, __pyx_t_2) < (0)) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":38
 * import os
 * import tokenize
 * from io import StringIO             # <<<<<<<<<<<<<<
 * 
 * from ._looper import looper
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_StringIO};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_io, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_StringIO};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 38, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 38, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":40
 * from io import StringIO
 * 
 * from ._looper import looper             # <<<<<<<<<<<<<<
 * 
 * __all__ = ['TemplateError', 'Template', 'sub', 'bunch']
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_looper_2};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_looper, __pyx_imported_names, 1, __pyx_mstate_global->__pyx_kp_u_Cython_Tempita__looper, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 40, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_looper_2};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 40, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 40, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":42
 * from ._looper import looper
 * 
 * __all__ = ['TemplateError', 'Template', 'sub', 'bunch']             # <<<<<<<<<<<<<<
 * 
 * in_re = re.compile(r'\s+in\s+')
*/
  {
    PyObject* __pyx_temp[4] = {__pyx_mstate_global->__pyx_n_u_TemplateError, __pyx_mstate_global->__pyx_n_u_Template, __pyx_mstate_global->__pyx_n_u_sub, __pyx_mstate_global->__pyx_n_u_bunch};
    __pyx_t_2 = __Pyx_PyList_FromArray(__pyx_temp, 4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 42, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_all, __pyx_t_2) < (0)) __PYX_ERR(0, 42, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":44
 * __all__ = ['TemplateError', 'Template', 'sub', 'bunch']
 * 
 * in_re = re.compile(r'\s+in\s+')             # <<<<<<<<<<<<<<
 * var_re = re.compile(r'^[a-z_][a-z0-9_]*$', re.I)
 * 
*/
  __pyx_t_4 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_s_in_s};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_in_re, __pyx_t_2) < (0)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":45
 * 
 * in_re = re.compile(r'\s+in\s+')
 * var_re = re.compile(r'^[a-z_][a-z0-9_]*$', re.I)             # <<<<<<<<<<<<<<
 * 
 * def coerce_text(v):
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_I); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_a_z__a_z0_9, __pyx_t_8};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (3-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_var_re, __pyx_t_2) < (0)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":47
 * var_re = re.compile(r'^[a-z_][a-z0-9_]*$', re.I)
 * 
 * def coerce_text(v):             # <<<<<<<<<<<<<<
 *     if not isinstance(v, str):
 *         if hasattr(v, '__str__'):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_1coerce_text, 0, __pyx_mstate_global->__pyx_n_u_coerce_text, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_coerce_text, __pyx_t_2) < (0)) __PYX_ERR(0, 47, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":55
 *     return v
 * 
 * class TemplateError(Exception):             # <<<<<<<<<<<<<<
 *     """Exception raised while parsing a template
 *     """
*/
  {
    PyObject* __pyx_temp[1] = {((PyObject *)(((PyTypeObject*)PyExc_Exception)))};
    __pyx_t_2 = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  __pyx_t_5 = __Pyx_PEP560_update_bases(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_8 = __Pyx_CalculateMetaclass(NULL, __pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare(__pyx_t_8, __pyx_t_5, __pyx_mstate_global->__pyx_n_u_TemplateError, __pyx_mstate_global->__pyx_n_u_TemplateError, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_kp_u_Exception_raised_while_parsing_a); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (__pyx_t_5 != __pyx_t_2) {
    if (unlikely((PyDict_SetItemString(__pyx_t_6, "__orig_bases__", __pyx_t_2) < 0))) __PYX_ERR(0, 55, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":59
 *     """
 * 
 *     def __init__(self, message, position, name=None):             # <<<<<<<<<<<<<<
 *         Exception.__init__(self, message)
 *         self.position = position
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_13TemplateError_1__init__, 0, __pyx_mstate_global->__pyx_n_u_TemplateError___init, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[19]);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_2) < (0)) __PYX_ERR(0, 59, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":64
 *         self.name = name
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         msg = ' '.join(self.args)
 *         if self.position:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_13TemplateError_3__str__, 0, __pyx_mstate_global->__pyx_n_u_TemplateError___str, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_str, __pyx_t_2) < (0)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":55
 *     return v
 * 
 * class TemplateError(Exception):             # <<<<<<<<<<<<<<
 *     """Exception raised while parsing a template
 *     """
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_TemplateError, __pyx_t_5, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TemplateError, __pyx_t_2) < (0)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":74
 * 
 * 
 * class _TemplateContinue(Exception):             # <<<<<<<<<<<<<<
 *     pass
 * 
*/
  {
    PyObject* __pyx_temp[1] = {((PyObject *)(((PyTypeObject*)PyExc_Exception)))};
    __pyx_t_5 = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 74, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
  }
  __pyx_t_8 = __Pyx_PEP560_update_bases(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_6 = __Pyx_CalculateMetaclass(NULL, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_6, __pyx_t_8, __pyx_mstate_global->__pyx_n_u_TemplateContinue, __pyx_mstate_global->__pyx_n_u_TemplateContinue, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__pyx_t_8 != __pyx_t_5) {
    if (unlikely((PyDict_SetItemString(__pyx_t_2, "__orig_bases__", __pyx_t_5) < 0))) __PYX_ERR(0, 74, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_TemplateContinue, __pyx_t_8, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TemplateContinue, __pyx_t_5) < (0)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":78
 * 
 * 
 * class _TemplateBreak(Exception):             # <<<<<<<<<<<<<<
 *     pass
 * 
*/
  {
    PyObject* __pyx_temp[1] = {((PyObject *)(((PyTypeObject*)PyExc_Exception)))};
    __pyx_t_8 = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 78, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  __pyx_t_6 = __Pyx_PEP560_update_bases(__pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_6, __pyx_mstate_global->__pyx_n_u_TemplateBreak, __pyx_mstate_global->__pyx_n_u_TemplateBreak, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (__pyx_t_6 != __pyx_t_8) {
    if (unlikely((PyDict_SetItemString(__pyx_t_5, "__orig_bases__", __pyx_t_8) < 0))) __PYX_ERR(0, 78, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_TemplateBreak, __pyx_t_6, __pyx_t_5, NULL, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TemplateBreak, __pyx_t_8) < (0)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":82
 * 
 * 
 * def get_file_template(name, from_template):             # <<<<<<<<<<<<<<
 *     path = os.path.join(os.path.dirname(from_template.name), name)
 *     return from_template.__class__.from_filename(
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_3get_file_template, 0, __pyx_mstate_global->__pyx_n_u_get_file_template, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_get_file_template, __pyx_t_6) < (0)) __PYX_ERR(0, 82, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":89
 * 
 * 
 * class Template:             # <<<<<<<<<<<<<<
 * 
 *     default_namespace = {
*/
  __pyx_t_6 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_Template, __pyx_mstate_global->__pyx_n_u_Template, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "Cython/Tempita/_tempita.py":92
 * 
 *     default_namespace = {
 *         'start_braces': '{{',             # <<<<<<<<<<<<<<
 *         'end_braces': '}}',
 *         'looper': looper,
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_start_braces, __pyx_mstate_global->__pyx_kp_u__25) < (0)) __PYX_ERR(0, 92, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_end_braces, __pyx_mstate_global->__pyx_kp_u__26) < (0)) __PYX_ERR(0, 92, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":94
 *         'start_braces': '{{',
 *         'end_braces': '}}',
 *         'looper': looper,             # <<<<<<<<<<<<<<
 *         }
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_looper_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_looper_2, __pyx_t_5) < (0)) __PYX_ERR(0, 92, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_default_namespace, __pyx_t_2) < (0)) __PYX_ERR(0, 91, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":97
 *         }
 * 
 *     default_encoding = 'utf8'             # <<<<<<<<<<<<<<
 *     default_inherit = None
 * 
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_default_encoding, __pyx_mstate_global->__pyx_n_u_utf8) < (0)) __PYX_ERR(0, 97, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":98
 * 
 *     default_encoding = 'utf8'
 *     default_inherit = None             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,
*/
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_default_inherit, Py_None) < (0)) __PYX_ERR(0, 98, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":100
 *     default_inherit = None
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,             # <<<<<<<<<<<<<<
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_1__init__, 0, __pyx_mstate_global->__pyx_n_u_Template___init, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[20]);
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_2) < (0)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":154
 *             self.default_inherit = default_inherit
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_3from_filename, __Pyx_CYFUNCTION_CLASSMETHOD, __pyx_mstate_global->__pyx_n_u_Template_from_filename, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_6Cython_7Tempita_8_tempita___pyx_defaults)) __PYX_ERR(0, 154, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":156
 *     @classmethod
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):             # <<<<<<<<<<<<<<
 *         with open(filename, 'rb') as f:
 *             c = f.read()
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_get_file_template); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_2)->arg0 = __pyx_t_5;
  __Pyx_GIVEREF(__pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_2, __pyx_pf_6Cython_7Tempita_8_tempita_36__defaults__);

  /* "Cython/Tempita/_tempita.py":154
 *             self.default_inherit = default_inherit
 * 
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
*/
  __pyx_t_5 = __Pyx_Method_ClassMethod(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_from_filename, __pyx_t_5) < (0)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":164
 *                    default_inherit=default_inherit, get_template=get_template)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s name=%r>' % (
 *             self.__class__.__name__,
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_5__repr__, 0, __pyx_mstate_global->__pyx_n_u_Template___repr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(0, 164, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":169
 *             hex(id(self))[2:], self.name)
 * 
 *     def substitute(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         if args:
 *             if kw:
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_7substitute, 0, __pyx_mstate_global->__pyx_n_u_Template_substitute, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_substitute, __pyx_t_5) < (0)) __PYX_ERR(0, 169, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":193
 *         return result
 * 
 *     def _interpret(self, ns) -> tuple:             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         parts = []
*/
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 193, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_9_interpret, 0, __pyx_mstate_global->__pyx_n_u_Template__interpret, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_5);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_interpret, __pyx_t_2) < (0)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":204
 *         return ''.join(parts), defs, inherit
 * 
 *     def _interpret_inherit(self, body, defs, inherit_template, ns):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         if not self.get_template:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_11_interpret_inherit, 0, __pyx_mstate_global->__pyx_n_u_Template__interpret_inherit, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_interpret_inherit, __pyx_t_2) < (0)) __PYX_ERR(0, 204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":219
 *         return templ.substitute(ns)
 * 
 *     def _interpret_codes(self, codes, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         for item in codes:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_13_interpret_codes, 0, __pyx_mstate_global->__pyx_n_u_Template__interpret_codes, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_interpret_codes, __pyx_t_2) < (0)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":227
 *                 self._interpret_code(item, ns, out, defs)
 * 
 *     def _interpret_code(self, code, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         name, pos = code[0], code[1]
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_15_interpret_code, 0, __pyx_mstate_global->__pyx_n_u_Template__interpret_code, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_interpret_code, __pyx_t_2) < (0)) __PYX_ERR(0, 227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":270
 *             assert 0, "Unknown code: %r" % name
 * 
 *     def _interpret_for(self, vars, expr, content, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         for item in expr:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_17_interpret_for, 0, __pyx_mstate_global->__pyx_n_u_Template__interpret_for, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_interpret_for, __pyx_t_2) < (0)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":289
 *                 break
 * 
 *     def _interpret_if(self, parts, ns, out, defs):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         # @@: if/else/else gets through
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_19_interpret_if, 0, __pyx_mstate_global->__pyx_n_u_Template__interpret_if, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_interpret_if, __pyx_t_2) < (0)) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":303
 *                 break
 * 
 *     def _eval(self, code, ns, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_21_eval, 0, __pyx_mstate_global->__pyx_n_u_Template__eval, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_eval_2, __pyx_t_2) < (0)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":320
 *             raise
 * 
 *     def _exec(self, code, ns, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_23_exec, 0, __pyx_mstate_global->__pyx_n_u_Template__exec, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_exec, __pyx_t_2) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":331
 *             raise
 * 
 *     def _repr(self, value, pos):             # <<<<<<<<<<<<<<
 *         __traceback_hide__ = True
 *         try:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_25_repr, 0, __pyx_mstate_global->__pyx_n_u_Template__repr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_repr, __pyx_t_2) < (0)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":373
 *             return value
 * 
 *     def _add_line_info(self, msg, pos):             # <<<<<<<<<<<<<<
 *         msg = "%s at line %s column %s" % (
 *             msg, pos[0], pos[1])
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_8Template_27_add_line_info, 0, __pyx_mstate_global->__pyx_n_u_Template__add_line_info, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_add_line_info, __pyx_t_2) < (0)) __PYX_ERR(0, 373, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":89
 * 
 * 
 * class Template:             # <<<<<<<<<<<<<<
 * 
 *     default_namespace = {
*/
  __pyx_t_2 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_Template, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_6, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Template, __pyx_t_2) < (0)) __PYX_ERR(0, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":381
 * 
 * 
 * def sub(content, delimiters=None, **kw):             # <<<<<<<<<<<<<<
 *     name = kw.get('__name')
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_5sub, 0, __pyx_mstate_global->__pyx_n_u_sub, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[19]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_sub, __pyx_t_6) < (0)) __PYX_ERR(0, 381, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":388
 * 
 * 
 * def paste_script_template_renderer(content, vars, filename=None):             # <<<<<<<<<<<<<<
 *     tmpl = Template(content, name=filename)
 *     return tmpl.substitute(vars)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_7paste_script_template_renderer, 0, __pyx_mstate_global->__pyx_n_u_paste_script_template_renderer, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_6, __pyx_mstate_global->__pyx_tuple[19]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_paste_script_template_renderer, __pyx_t_6) < (0)) __PYX_ERR(0, 388, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":393
 * 
 * 
 * class bunch(dict):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, **kw):
*/
  {
    PyObject* __pyx_temp[1] = {((PyObject *)(&PyDict_Type))};
    __pyx_t_6 = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
  }
  __pyx_t_2 = __Pyx_PEP560_update_bases(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_8 = __Pyx_Py3MetaclassPrepare(__pyx_t_5, __pyx_t_2, __pyx_mstate_global->__pyx_n_u_bunch, __pyx_mstate_global->__pyx_n_u_bunch, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  if (__pyx_t_2 != __pyx_t_6) {
    if (unlikely((PyDict_SetItemString(__pyx_t_8, "__orig_bases__", __pyx_t_6) < 0))) __PYX_ERR(0, 393, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":395
 * class bunch(dict):
 * 
 *     def __init__(self, **kw):             # <<<<<<<<<<<<<<
 *         for name, value in kw.items():
 *             setattr(self, name, value)
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_1__init__, 0, __pyx_mstate_global->__pyx_n_u_bunch___init, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_6) < (0)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":399
 *             setattr(self, name, value)
 * 
 *     def __setattr__(self, name, value):             # <<<<<<<<<<<<<<
 *         self[name] = value
 * 
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_3__setattr__, 0, __pyx_mstate_global->__pyx_n_u_bunch___setattr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_setattr, __pyx_t_6) < (0)) __PYX_ERR(0, 399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":402
 *         self[name] = value
 * 
 *     def __getattr__(self, name):             # <<<<<<<<<<<<<<
 *         try:
 *             return self[name]
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_5__getattr__, 0, __pyx_mstate_global->__pyx_n_u_bunch___getattr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_getattr, __pyx_t_6) < (0)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":408
 *             raise AttributeError(name)
 * 
 *     def __getitem__(self, key):             # <<<<<<<<<<<<<<
 *         if 'default' in self:
 *             try:
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_7__getitem__, 0, __pyx_mstate_global->__pyx_n_u_bunch___getitem, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_getitem, __pyx_t_6) < (0)) __PYX_ERR(0, 408, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":417
 *             return dict.__getitem__(self, key)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s>' % (
 *             self.__class__.__name__,
*/
  __pyx_t_6 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_5bunch_9__repr__, 0, __pyx_mstate_global->__pyx_n_u_bunch___repr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_6) < (0)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "Cython/Tempita/_tempita.py":393
 * 
 * 
 * class bunch(dict):             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, **kw):
*/
  __pyx_t_6 = __Pyx_Py3ClassCreate(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_bunch, __pyx_t_2, __pyx_t_8, NULL, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_6);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_bunch, __pyx_t_6) < (0)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":423
 * 
 * 
 * class TemplateDef:             # <<<<<<<<<<<<<<
 *     def __init__(self, template, func_name, func_signature,
 *                  body, ns, pos, bound_self=None):
*/
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_TemplateDef, __pyx_mstate_global->__pyx_n_u_TemplateDef, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "Cython/Tempita/_tempita.py":424
 * 
 * class TemplateDef:
 *     def __init__(self, template, func_name, func_signature,             # <<<<<<<<<<<<<<
 *                  body, ns, pos, bound_self=None):
 *         self._template = template
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_1__init__, 0, __pyx_mstate_global->__pyx_n_u_TemplateDef___init, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[19]);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_5) < (0)) __PYX_ERR(0, 424, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":434
 *         self._bound_self = bound_self
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<tempita function %s(%s) at %s:%s>' % (
 *             self._func_name, self._func_signature,
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_3__repr__, 0, __pyx_mstate_global->__pyx_n_u_TemplateDef___repr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(0, 434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":439
 *             self._template.name, self._pos)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self()
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_5__str__, 0, __pyx_mstate_global->__pyx_n_u_TemplateDef___str, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_str, __pyx_t_5) < (0)) __PYX_ERR(0, 439, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":442
 *         return self()
 * 
 *     def __call__(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         values = self._parse_signature(args, kw)
 *         ns = self._ns.copy()
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_7__call__, 0, __pyx_mstate_global->__pyx_n_u_TemplateDef___call, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_call, __pyx_t_5) < (0)) __PYX_ERR(0, 442, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":453
 *         return ''.join(out)
 * 
 *     def __get__(self, obj, type=None):             # <<<<<<<<<<<<<<
 *         if obj is None:
 *             return self
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_9__get__, 0, __pyx_mstate_global->__pyx_n_u_TemplateDef___get, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_mstate_global->__pyx_tuple[19]);
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_get_2, __pyx_t_5) < (0)) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":460
 *             self._body, self._ns, self._pos, bound_self=obj)
 * 
 *     def _parse_signature(self, args, kw):             # <<<<<<<<<<<<<<
 *         values = {}
 *         sig_args, var_args, var_kw, defaults = self._func_signature
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_11TemplateDef_11_parse_signature, 0, __pyx_mstate_global->__pyx_n_u_TemplateDef__parse_signature, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[31])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_parse_signature, __pyx_t_5) < (0)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":423
 * 
 * 
 * class TemplateDef:             # <<<<<<<<<<<<<<
 *     def __init__(self, template, func_name, func_signature,
 *                  body, ns, pos, bound_self=None):
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_TemplateDef, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TemplateDef, __pyx_t_5) < (0)) __PYX_ERR(0, 423, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":500
 * 
 * 
 * class TemplateObject:             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, name):
*/
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_TemplateObject, __pyx_mstate_global->__pyx_n_u_TemplateObject, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "Cython/Tempita/_tempita.py":502
 * class TemplateObject:
 * 
 *     def __init__(self, name):             # <<<<<<<<<<<<<<
 *         self.__name = name
 *         self.get = TemplateObjectGetter(self)
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_14TemplateObject_1__init__, 0, __pyx_mstate_global->__pyx_n_u_TemplateObject___init, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[32])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_5) < (0)) __PYX_ERR(0, 502, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":506
 *         self.get = TemplateObjectGetter(self)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s %s>' % (self.__class__.__name__, self.__name)
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_14TemplateObject_3__repr__, 0, __pyx_mstate_global->__pyx_n_u_TemplateObject___repr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[33])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(0, 506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":500
 * 
 * 
 * class TemplateObject:             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, name):
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_TemplateObject, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TemplateObject, __pyx_t_5) < (0)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":510
 * 
 * 
 * class TemplateObjectGetter:             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, template_obj):
*/
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "Cython/Tempita/_tempita.py":512
 * class TemplateObjectGetter:
 * 
 *     def __init__(self, template_obj):             # <<<<<<<<<<<<<<
 *         self.__template_obj = template_obj
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_1__init__, 0, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter___init, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_init, __pyx_t_5) < (0)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":515
 *         self.__template_obj = template_obj
 * 
 *     def __getattr__(self, attr):             # <<<<<<<<<<<<<<
 *         return getattr(self.__template_obj, attr, Empty)
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_3__getattr__, 0, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter___getattr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_getattr, __pyx_t_5) < (0)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":518
 *         return getattr(self.__template_obj, attr, Empty)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s around %r>' % (self.__class__.__name__, self.__template_obj)
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_20TemplateObjectGetter_5__repr__, 0, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter___repr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 518, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(0, 518, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":510
 * 
 * 
 * class TemplateObjectGetter:             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, template_obj):
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_TemplateObjectGetter, __pyx_t_5) < (0)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":522
 * 
 * 
 * class _Empty:             # <<<<<<<<<<<<<<
 *     def __call__(self, *args, **kw):
 *         return self
*/
  __pyx_t_2 = __Pyx_Py3MetaclassPrepare((PyObject *) NULL, __pyx_mstate_global->__pyx_empty_tuple, __pyx_mstate_global->__pyx_n_u_Empty_2, __pyx_mstate_global->__pyx_n_u_Empty_2, (PyObject *) NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "Cython/Tempita/_tempita.py":523
 * 
 * class _Empty:
 *     def __call__(self, *args, **kw):             # <<<<<<<<<<<<<<
 *         return self
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_1__call__, 0, __pyx_mstate_global->__pyx_n_u_Empty___call, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_call, __pyx_t_5) < (0)) __PYX_ERR(0, 523, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":526
 *         return self
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return ''
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_3__str__, 0, __pyx_mstate_global->__pyx_n_u_Empty___str, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_str, __pyx_t_5) < (0)) __PYX_ERR(0, 526, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":529
 *         return ''
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return 'Empty'
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_5__repr__, 0, __pyx_mstate_global->__pyx_n_u_Empty___repr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_repr_2, __pyx_t_5) < (0)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":532
 *         return 'Empty'
 * 
 *     def __unicode__(self):             # <<<<<<<<<<<<<<
 *         return ''
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_7__unicode__, 0, __pyx_mstate_global->__pyx_n_u_Empty___unicode, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[40])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_unicode_2, __pyx_t_5) < (0)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":535
 *         return ''
 * 
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         return iter(())
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_9__iter__, 0, __pyx_mstate_global->__pyx_n_u_Empty___iter, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[41])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_iter, __pyx_t_5) < (0)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":538
 *         return iter(())
 * 
 *     def __bool__(self):             # <<<<<<<<<<<<<<
 *         return False
 * 
*/
  __pyx_t_5 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_6_Empty_11__bool__, 0, __pyx_mstate_global->__pyx_n_u_Empty___bool, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[42])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_bool, __pyx_t_5) < (0)) __PYX_ERR(0, 538, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "Cython/Tempita/_tempita.py":522
 * 
 * 
 * class _Empty:             # <<<<<<<<<<<<<<
 *     def __call__(self, *args, **kw):
 *         return self
*/
  __pyx_t_5 = __Pyx_Py3ClassCreate(((PyObject*)&PyType_Type), __pyx_mstate_global->__pyx_n_u_Empty_2, __pyx_mstate_global->__pyx_empty_tuple, __pyx_t_2, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_5);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Empty_2, __pyx_t_5) < (0)) __PYX_ERR(0, 522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":541
 *         return False
 * 
 * Empty = _Empty()             # <<<<<<<<<<<<<<
 * del _Empty
 * 
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_Empty_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
    __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_Empty, __pyx_t_2) < (0)) __PYX_ERR(0, 541, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":542
 * 
 * Empty = _Empty()
 * del _Empty             # <<<<<<<<<<<<<<
 * 
 * ############################################################
*/
  if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_mstate_global->__pyx_n_u_Empty_2) < (0)) __PYX_ERR(0, 542, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":549
 * 
 * 
 * def lex(s, name=None, trim_whitespace=True, line_offset=0, delimiters=None) -> list:             # <<<<<<<<<<<<<<
 *     """
 *     Lex a string into chunks:
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 549, __pyx_L1_error)
  __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_9lex, 0, __pyx_mstate_global->__pyx_n_u_lex, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_8, __pyx_mstate_global->__pyx_tuple[21]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_8, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_lex, __pyx_t_8) < (0)) __PYX_ERR(0, 549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":608
 *     return chunks
 * 
 * statement_re = re.compile(r'^(?:if |elif |for |def |inherit |default |py:)')             # <<<<<<<<<<<<<<
 * single_statements = ['else', 'endif', 'endfor', 'enddef', 'continue', 'break']
 * trail_whitespace_re = re.compile(r'\n\r?[\t ]*$')
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_if_elif_for_def_inherit_default};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 608, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_statement_re, __pyx_t_8) < (0)) __PYX_ERR(0, 608, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":609
 * 
 * statement_re = re.compile(r'^(?:if |elif |for |def |inherit |default |py:)')
 * single_statements = ['else', 'endif', 'endfor', 'enddef', 'continue', 'break']             # <<<<<<<<<<<<<<
 * trail_whitespace_re = re.compile(r'\n\r?[\t ]*$')
 * lead_whitespace_re = re.compile(r'^[\t ]*\n')
*/
  {
    PyObject* __pyx_temp[6] = {__pyx_mstate_global->__pyx_n_u_else, __pyx_mstate_global->__pyx_n_u_endif, __pyx_mstate_global->__pyx_n_u_endfor, __pyx_mstate_global->__pyx_n_u_enddef, __pyx_mstate_global->__pyx_n_u_continue, __pyx_mstate_global->__pyx_n_u_break};
    __pyx_t_8 = __Pyx_PyList_FromArray(__pyx_temp, 6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 609, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_single_statements, __pyx_t_8) < (0)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":610
 * statement_re = re.compile(r'^(?:if |elif |for |def |inherit |default |py:)')
 * single_statements = ['else', 'endif', 'endfor', 'enddef', 'continue', 'break']
 * trail_whitespace_re = re.compile(r'\n\r?[\t ]*$')             # <<<<<<<<<<<<<<
 * lead_whitespace_re = re.compile(r'^[\t ]*\n')
 * 
*/
  __pyx_t_6 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_mstate_global->__pyx_kp_u_n_r_t};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 610, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_trail_whitespace_re, __pyx_t_8) < (0)) __PYX_ERR(0, 610, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":611
 * single_statements = ['else', 'endif', 'endfor', 'enddef', 'continue', 'break']
 * trail_whitespace_re = re.compile(r'\n\r?[\t ]*$')
 * lead_whitespace_re = re.compile(r'^[\t ]*\n')             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_5 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_re); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_t_n};
    __pyx_t_8 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
  }
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_lead_whitespace_re, __pyx_t_8) < (0)) __PYX_ERR(0, 611, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":614
 * 
 * 
 * def trim_lex(tokens: list):             # <<<<<<<<<<<<<<
 *     r"""
 *     Takes a lexed set of tokens, and removes whitespace when there is
*/
  __pyx_t_8 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 614, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_11trim_lex, 0, __pyx_mstate_global->__pyx_n_u_trim_lex, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[44])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_8);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_trim_lex, __pyx_t_2) < (0)) __PYX_ERR(0, 614, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":673
 * 
 * 
 * def find_position(string: str, index, last_index, last_pos) -> tuple:             # <<<<<<<<<<<<<<
 *     """Given a string and index, return (line, column)"""
 *     lines = string.count('\n', last_index, index)
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_string_2, __pyx_mstate_global->__pyx_n_u_str_2) < (0)) __PYX_ERR(0, 673, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 673, __pyx_L1_error)
  __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_13find_position, 0, __pyx_mstate_global->__pyx_n_u_find_position, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[45])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_8, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_find_position, __pyx_t_8) < (0)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":683
 * 
 * 
 * def parse(s, name=None, line_offset=0, delimiters=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Parses a string into a kind of AST
*/
  __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_15parse, 0, __pyx_mstate_global->__pyx_n_u_parse, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[46])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_8, __pyx_mstate_global->__pyx_tuple[22]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse, __pyx_t_8) < (0)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":741
 * 
 * 
 * def parse_expr(tokens: list, name, context=()) -> tuple:             # <<<<<<<<<<<<<<
 *     if isinstance(tokens[0], str):
 *         return tokens[0], tokens[1:]
*/
  __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 741, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 741, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_17parse_expr, 0, __pyx_mstate_global->__pyx_n_u_parse_expr, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[47])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[23]);
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_8);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_expr, __pyx_t_2) < (0)) __PYX_ERR(0, 741, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":795
 * 
 * 
 * def parse_cond(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     start = tokens[0][1]
 *     pieces = []
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 795, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 795, __pyx_L1_error)
  __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_19parse_cond, 0, __pyx_mstate_global->__pyx_n_u_parse_cond, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[48])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_8, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_cond, __pyx_t_8) < (0)) __PYX_ERR(0, 795, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":811
 * 
 * 
 * def parse_one_cond(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     (first, pos), tokens = tokens[0], tokens[1:]
*/
  __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 811, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 811, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_21parse_one_cond, 0, __pyx_mstate_global->__pyx_n_u_parse_one_cond, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[49])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_8);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_one_cond, __pyx_t_2) < (0)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":839
 * 
 * 
 * def parse_for(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 839, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 839, __pyx_L1_error)
  __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_23parse_for, 0, __pyx_mstate_global->__pyx_n_u_parse_for, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[50])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_8, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_for, __pyx_t_8) < (0)) __PYX_ERR(0, 839, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":872
 * 
 * 
 * def parse_default(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/
  __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 872, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 872, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_25parse_default, 0, __pyx_mstate_global->__pyx_n_u_parse_default, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[51])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_8);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_default, __pyx_t_2) < (0)) __PYX_ERR(0, 872, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":895
 * 
 * 
 * def parse_inherit(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, pos = tokens[0]
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 895, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_27parse_inherit, 0, __pyx_mstate_global->__pyx_n_u_parse_inherit, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[52])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_8, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_inherit, __pyx_t_8) < (0)) __PYX_ERR(0, 895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":903
 * 
 * 
 * def parse_def(tokens: list, name, context) -> tuple:             # <<<<<<<<<<<<<<
 *     first: str
 *     first, start = tokens[0]
*/
  __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_tokens, __pyx_mstate_global->__pyx_n_u_list) < (0)) __PYX_ERR(0, 903, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 903, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_29parse_def, 0, __pyx_mstate_global->__pyx_n_u_parse_def, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[53])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_8);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_def, __pyx_t_2) < (0)) __PYX_ERR(0, 903, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":935
 * 
 * 
 * def parse_signature(sig_text: str, name, pos) -> tuple:             # <<<<<<<<<<<<<<
 *     tokens = tokenize.generate_tokens(StringIO(sig_text).readline)
 *     sig_args = []
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_sig_text, __pyx_mstate_global->__pyx_n_u_str_2) < (0)) __PYX_ERR(0, 935, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_tuple) < (0)) __PYX_ERR(0, 935, __pyx_L1_error)
  __pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_31parse_signature, 0, __pyx_mstate_global->__pyx_n_u_parse_signature_2, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[54])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_8);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_8, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_parse_signature_2, __pyx_t_8) < (0)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

  /* "Cython/Tempita/_tempita.py":1013
 * 
 * 
 * def isolate_expression(string: str, start_pos, end_pos) -> str:             # <<<<<<<<<<<<<<
 *     srow, scol = start_pos
 *     srow -= 1
*/
  __pyx_t_8 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_string_2, __pyx_mstate_global->__pyx_n_u_str_2) < (0)) __PYX_ERR(0, 1013, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_return, __pyx_mstate_global->__pyx_n_u_str_2) < (0)) __PYX_ERR(0, 1013, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_33isolate_expression, 0, __pyx_mstate_global->__pyx_n_u_isolate_expression, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[55])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_8);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_isolate_expression, __pyx_t_2) < (0)) __PYX_ERR(0, 1013, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":1028
 *     return ''.join(parts)
 * 
 * _fill_command_usage = """\             # <<<<<<<<<<<<<<
 * %prog [OPTIONS] TEMPLATE arg=value
 * 
*/
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_fill_command_usage, __pyx_mstate_global->__pyx_kp_u_prog_OPTIONS_TEMPLATE_arg_value) < (0)) __PYX_ERR(0, 1028, __pyx_L1_error)

  /* "Cython/Tempita/_tempita.py":1036
 * 
 * 
 * def fill_command(args=None):             # <<<<<<<<<<<<<<
 *     import sys
 *     import optparse
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6Cython_7Tempita_8_tempita_35fill_command, 0, __pyx_mstate_global->__pyx_n_u_fill_command, NULL, __pyx_mstate_global->__pyx_n_u_Cython_Tempita__tempita, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[56])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_mstate_global->__pyx_tuple[19]);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_fill_command, __pyx_t_2) < (0)) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "Cython/Tempita/_tempita.py":1086
 *         sys.stdout.write(result)
 * 
 * if __name__ == '__main__':             # <<<<<<<<<<<<<<
 *     fill_command()
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_9 = __Pyx_PyObject_CompareBoolEq_object_str(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_main, Py_EQ); if (unlikely((__pyx_t_9 < 0))) __PYX_ERR(0, 1086, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_9) {


    /* "Cython/Tempita/_tempita.py":1087
 * 
 * if __name__ == '__main__':
 *     fill_command()             # <<<<<<<<<<<<<<
*/
    __pyx_t_8 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_fill_command); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1087, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_8, NULL};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1087, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "Cython/Tempita/_tempita.py":1086
 *         sys.stdout.write(result)
 * 
 * if __name__ == '__main__':             # <<<<<<<<<<<<<<
 *     fill_command()
*/
  }

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init Cython.Tempita._tempita", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      __Pyx_PyErr_FetchException(&tp, &value, &tb);
      __Pyx_State_RemoveModule(&__pyx_moduledef);
      __Pyx_PyErr_RestoreException(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init Cython.Tempita._tempita");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __pyx_builtin_open = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_open); if (!__pyx_builtin_open) __PYX_ERR(0, 157, __pyx_L1_error)
  __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_id); if (!__pyx_builtin_id) __PYX_ERR(0, 167, __pyx_L1_error)
  __pyx_builtin_zip = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_zip); if (!__pyx_builtin_zip) __PYX_ERR(0, 280, __pyx_L1_error)
  __pyx_builtin_eval = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_eval); if (!__pyx_builtin_eval) __PYX_ERR(0, 307, __pyx_L1_error)
  __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 628, __pyx_L1_error)
  __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_print); if (!__pyx_builtin_print) __PYX_ERR(0, 1056, __pyx_L1_error)

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_get.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_get.method_name = &__pyx_mstate->__pyx_n_u_get;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyDict_Type__update.type = (PyObject*)(&PyDict_Type);
  __pyx_mstate->__pyx_umethod_PyDict_Type__update.method_name = &__pyx_mstate->__pyx_n_u_update;
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__lstrip.type = (PyObject*)(&PyUnicode_Type);
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__lstrip.method_name = &__pyx_mstate->__pyx_n_u_lstrip;
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__strip.type = (PyObject*)(&PyUnicode_Type);
  __pyx_mstate->__pyx_umethod_PyUnicode_Type__strip.method_name = &__pyx_mstate->__pyx_n_u_strip;
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "Cython/Tempita/_tempita.py":84
 * def get_file_template(name, from_template):
 *     path = os.path.join(os.path.dirname(from_template.name), name)
 *     return from_template.__class__.from_filename(             # <<<<<<<<<<<<<<
 *         path, namespace=from_template.namespace,
 *         get_template=from_template.get_template)
*/
  {
    PyObject* __pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_namespace, __pyx_mstate_global->__pyx_n_u_get_template};
    __pyx_mstate_global->__pyx_tuple[0] = __Pyx_PyTuple_FromArray(__pyx_temp, 2); if (unlikely(!__pyx_mstate_global->__pyx_tuple[0])) __PYX_ERR(0, 84, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[0]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[0]);

  /* "Cython/Tempita/_tempita.py":138
 *                     name = globals['__file__']
 *                     if name.endswith('.pyc') or name.endswith('.pyo'):
 *                         name = name[:-1]             # <<<<<<<<<<<<<<
 *                 elif '__name__' in globals:
 *                     name = globals['__name__']
*/
  __pyx_mstate_global->__pyx_slice[0] = PySlice_New(Py_None, __pyx_mstate_global->__pyx_int_neg_1, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[0])) __PYX_ERR(0, 138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[0]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[0]);

  /* "Cython/Tempita/_tempita.py":146
 *                     name += ':%s' % lineno
 *         self.name = name
 *         self._parsed = parse(content, name=name, line_offset=line_offset, delimiters=self.delimiters)             # <<<<<<<<<<<<<<
 *         if namespace is None:
 *             namespace = {}
*/
  {
    PyObject* __pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_line_offset, __pyx_mstate_global->__pyx_n_u_delimiters};
    __pyx_mstate_global->__pyx_tuple[1] = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[1])) __PYX_ERR(0, 146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[1]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[1]);

  /* "Cython/Tempita/_tempita.py":157
 *     def from_filename(cls, filename, namespace=None, encoding=None,
 *                       default_inherit=None, get_template=get_file_template):
 *         with open(filename, 'rb') as f:             # <<<<<<<<<<<<<<
 *             c = f.read()
 *         if encoding:
*/
  {
    PyObject* __pyx_temp[3] = {Py_None, Py_None, Py_None};
    __pyx_mstate_global->__pyx_tuple[2] = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[2])) __PYX_ERR(0, 157, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[2]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[2]);

  /* "Cython/Tempita/_tempita.py":161
 *         if encoding:
 *             c = c.decode(encoding)
 *         return cls(content=c, name=filename, namespace=namespace,             # <<<<<<<<<<<<<<
 *                    default_inherit=default_inherit, get_template=get_template)
 * 
*/
  {
    PyObject* __pyx_temp[5] = {__pyx_mstate_global->__pyx_n_u_content, __pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_namespace, __pyx_mstate_global->__pyx_n_u_default_inherit, __pyx_mstate_global->__pyx_n_u_get_template};
    __pyx_mstate_global->__pyx_tuple[3] = __Pyx_PyTuple_FromArray(__pyx_temp, 5); if (unlikely(!__pyx_mstate_global->__pyx_tuple[3])) __PYX_ERR(0, 161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[3]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[3]);

  /* "Cython/Tempita/_tempita.py":197
 *         parts = []
 *         defs = {}
 *         self._interpret_codes(self._parsed, ns, out=parts, defs=defs)             # <<<<<<<<<<<<<<
 *         if '__inherit__' in defs:
 *             inherit = defs.pop('__inherit__')
*/
  {
    PyObject* __pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_out, __pyx_mstate_global->__pyx_n_u_defs};
    __pyx_mstate_global->__pyx_tuple[4] = __Pyx_PyTuple_FromArray(__pyx_temp, 2); if (unlikely(!__pyx_mstate_global->__pyx_tuple[4])) __PYX_ERR(0, 197, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[4]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[4]);

  /* "Cython/Tempita/_tempita.py":207
 *         __traceback_hide__ = True
 *         if not self.get_template:
 *             raise TemplateError(             # <<<<<<<<<<<<<<
 *                 'You cannot use inheritance without passing in get_template',
 *                 position=None, name=self.name)
*/
  {
    PyObject* __pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_position, __pyx_mstate_global->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_tuple[5] = __Pyx_PyTuple_FromArray(__pyx_temp, 2); if (unlikely(!__pyx_mstate_global->__pyx_tuple[5])) __PYX_ERR(0, 207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[5]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[5]);

  /* "Cython/Tempita/_tempita.py":241
 *             self._interpret_for(vars, expr, content, ns, out, defs)
 *         elif name == 'cond':
 *             parts = code[2:]             # <<<<<<<<<<<<<<
 *             self._interpret_if(parts, ns, out, defs)
 *         elif name == 'expr':
*/
  __pyx_mstate_global->__pyx_slice[1] = PySlice_New(__pyx_mstate_global->__pyx_int_2, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[1])) __PYX_ERR(0, 241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[1]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[1]);

  /* "Cython/Tempita/_tempita.py":246
 *             parts = code[2].split('|')
 *             base = self._eval(parts[0], ns, pos)
 *             for part in parts[1:]:             # <<<<<<<<<<<<<<
 *                 func = self._eval(part, ns, pos)
 *                 base = func(base)
*/
  __pyx_mstate_global->__pyx_slice[2] = PySlice_New(__pyx_mstate_global->__pyx_int_1, Py_None, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[2])) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[2]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[2]);

  /* "Cython/Tempita/_tempita.py":263
 *             signature = code[3]
 *             parts = code[4]
 *             ns[name] = defs[name] = TemplateDef(self, name, signature, body=parts, ns=ns,             # <<<<<<<<<<<<<<
 *                                                 pos=pos)
 *         elif name == 'comment':
*/
  {
    PyObject* __pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_body, __pyx_mstate_global->__pyx_n_u_ns, __pyx_mstate_global->__pyx_n_u_pos};
    __pyx_mstate_global->__pyx_tuple[6] = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[6])) __PYX_ERR(0, 263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[6]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[6]);

  /* "Cython/Tempita/_tempita.py":384
 *     name = kw.get('__name')
 *     delimeters = kw.pop('delimeters') if 'delimeters' in kw else None  # for legacy code
 *     tmpl = Template(content, name=name, delimiters=delimiters, delimeters=delimeters)             # <<<<<<<<<<<<<<
 *     return tmpl.substitute(kw)
 * 
*/
  {
    PyObject* __pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_delimiters, __pyx_mstate_global->__pyx_n_u_delimeters};
    __pyx_mstate_global->__pyx_tuple[7] = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[7])) __PYX_ERR(0, 384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[7]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[7]);

  /* "Cython/Tempita/_tempita.py":389
 * 
 * def paste_script_template_renderer(content, vars, filename=None):
 *     tmpl = Template(content, name=filename)             # <<<<<<<<<<<<<<
 *     return tmpl.substitute(vars)
 * 
*/
  {
    PyObject* __pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_tuple[8] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[8])) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[8]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[8]);

  /* "Cython/Tempita/_tempita.py":456
 *         if obj is None:
 *             return self
 *         return self.__class__(             # <<<<<<<<<<<<<<
 *             self._template, self._func_name, self._func_signature,
 *             self._body, self._ns, self._pos, bound_self=obj)
*/
  {
    PyObject* __pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_bound_self};
    __pyx_mstate_global->__pyx_tuple[9] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[9])) __PYX_ERR(0, 456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[9]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[9]);

  /* "Cython/Tempita/_tempita.py":599
 *         last_pos = pos
 *     if in_expr:
 *         raise TemplateError(             # <<<<<<<<<<<<<<
 *             f'No {end_braces} to finish last expression', name=name, position=last_pos)
 *     part = s[last:]
*/
  {
    PyObject* __pyx_temp[2] = {__pyx_mstate_global->__pyx_n_u_name, __pyx_mstate_global->__pyx_n_u_position};
    __pyx_mstate_global->__pyx_tuple[10] = __Pyx_PyTuple_FromArray(__pyx_temp, 2); if (unlikely(!__pyx_mstate_global->__pyx_tuple[10])) __PYX_ERR(0, 599, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[10]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[10]);

  /* "Cython/Tempita/_tempita.py":798
 *     start = tokens[0][1]
 *     pieces = []
 *     context = context + ('if',)             # <<<<<<<<<<<<<<
 *     while 1:
 *         if not tokens:
*/
  {
    PyObject* __pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_if_2};
    __pyx_mstate_global->__pyx_tuple[11] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[11])) __PYX_ERR(0, 798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[11]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[11]);

  /* "Cython/Tempita/_tempita.py":843
 *     first, pos = tokens[0]
 *     tokens = tokens[1:]
 *     context = ('for',) + context             # <<<<<<<<<<<<<<
 *     content = []
 *     assert first.startswith('for '), first
*/
  {
    PyObject* __pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_for};
    __pyx_mstate_global->__pyx_tuple[12] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[12])) __PYX_ERR(0, 843, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[12]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[12]);

  /* "Cython/Tempita/_tempita.py":921
 *         func_name, sig_text = first.split('(', 1)
 *         sig = parse_signature(sig_text, name, start)
 *     context = context + ('def',)             # <<<<<<<<<<<<<<
 *     content = []
 *     while 1:
*/
  {
    PyObject* __pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_def};
    __pyx_mstate_global->__pyx_tuple[13] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[13])) __PYX_ERR(0, 921, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[13]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[13]);

  /* "Cython/Tempita/_tempita.py":942
 *     defaults = {}
 * 
 *     def get_token(pos=False) -> tuple:             # <<<<<<<<<<<<<<
 *         try:
 *             tok_type, tok_string, (srow, scol), (erow, ecol), line = next(tokens)
*/
  {
    PyObject* __pyx_temp[1] = {((PyObject*)Py_False)};
    __pyx_mstate_global->__pyx_tuple[14] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[14])) __PYX_ERR(0, 942, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[14]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[14]);

  /* "Cython/Tempita/_tempita.py":1042
 *     if args is None:
 *         args = sys.argv[1:]
 *     parser = optparse.OptionParser(             # <<<<<<<<<<<<<<
 *         usage=_fill_command_usage)
 *     parser.add_option(
*/
  {
    PyObject* __pyx_temp[1] = {__pyx_mstate_global->__pyx_n_u_usage};
    __pyx_mstate_global->__pyx_tuple[15] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[15])) __PYX_ERR(0, 1042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[15]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[15]);

  /* "Cython/Tempita/_tempita.py":1044
 *     parser = optparse.OptionParser(
 *         usage=_fill_command_usage)
 *     parser.add_option(             # <<<<<<<<<<<<<<
 *         '-o', '--output',
 *         dest='output',
*/
  {
    PyObject* __pyx_temp[2] = {__pyx_mstate_global->__pyx_kp_u_o, __pyx_mstate_global->__pyx_kp_u_output};
    __pyx_mstate_global->__pyx_tuple[16] = __Pyx_PyTuple_FromArray(__pyx_temp, 2); if (unlikely(!__pyx_mstate_global->__pyx_tuple[16])) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[16]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[16]);

  /* "Cython/Tempita/_tempita.py":1049
 *         metavar="FILENAME",
 *         help="File to write output to (default stdout)")
 *     parser.add_option(             # <<<<<<<<<<<<<<
 *         '--env',
 *         dest='use_env',
*/
  {
    PyObject* __pyx_temp[3] = {__pyx_mstate_global->__pyx_n_u_dest, __pyx_mstate_global->__pyx_n_u_action, __pyx_mstate_global->__pyx_n_u_help};
    __pyx_mstate_global->__pyx_tuple[17] = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[17])) __PYX_ERR(0, 1049, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[17]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[17]);

  /* "Cython/Tempita/_tempita.py":1067
 *             print('Bad argument: %r' % value)
 *             sys.exit(2)
 *         name, value = value.split('=', 1)             # <<<<<<<<<<<<<<
 *         if name.startswith('py:'):
 *             name = name[:3]
*/
  {
    PyObject* __pyx_temp[2] = {__pyx_mstate_global->__pyx_kp_u__7, __pyx_mstate_global->__pyx_int_1};
    __pyx_mstate_global->__pyx_tuple[18] = __Pyx_PyTuple_FromArray(__pyx_temp, 2); if (unlikely(!__pyx_mstate_global->__pyx_tuple[18])) __PYX_ERR(0, 1067, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[18]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[18]);

  /* "Cython/Tempita/_tempita.py":1069
 *         name, value = value.split('=', 1)
 *         if name.startswith('py:'):
 *             name = name[:3]             # <<<<<<<<<<<<<<
 *             value = eval(value)
 *         vars[name] = value
*/
  __pyx_mstate_global->__pyx_slice[3] = PySlice_New(Py_None, __pyx_mstate_global->__pyx_int_3, Py_None); if (unlikely(!__pyx_mstate_global->__pyx_slice[3])) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_mstate_global->__pyx_slice[3]);
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_slice[3]);

  /* "Cython/Tempita/_tempita.py":59
 *     """
 * 
 *     def __init__(self, message, position, name=None):             # <<<<<<<<<<<<<<
 *         Exception.__init__(self, message)
 *         self.position = position
*/
  {
    PyObject* __pyx_temp[1] = {Py_None};
    __pyx_mstate_global->__pyx_tuple[19] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[19])) __PYX_ERR(0, 59, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[19]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[19]);

  /* "Cython/Tempita/_tempita.py":100
 *     default_inherit = None
 * 
 *     def __init__(self, content, name=None, namespace=None, stacklevel=None,             # <<<<<<<<<<<<<<
 *                  get_template=None, default_inherit=None, line_offset=0,
 *                  delimiters=None, delimeters=None):
*/
  {
    PyObject* __pyx_temp[8] = {Py_None, Py_None, Py_None, Py_None, Py_None, ((PyObject*)__pyx_mstate_global->__pyx_int_0), Py_None, Py_None};
    __pyx_mstate_global->__pyx_tuple[20] = __Pyx_PyTuple_FromArray(__pyx_temp, 8); if (unlikely(!__pyx_mstate_global->__pyx_tuple[20])) __PYX_ERR(0, 100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[20]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[20]);

  /* "Cython/Tempita/_tempita.py":549
 * 
 * 
 * def lex(s, name=None, trim_whitespace=True, line_offset=0, delimiters=None) -> list:             # <<<<<<<<<<<<<<
 *     """
 *     Lex a string into chunks:
*/
  {
    PyObject* __pyx_temp[4] = {Py_None, ((PyObject*)Py_True), ((PyObject*)__pyx_mstate_global->__pyx_int_0), Py_None};
    __pyx_mstate_global->__pyx_tuple[21] = __Pyx_PyTuple_FromArray(__pyx_temp, 4); if (unlikely(!__pyx_mstate_global->__pyx_tuple[21])) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[21]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[21]);

  /* "Cython/Tempita/_tempita.py":683
 * 
 * 
 * def parse(s, name=None, line_offset=0, delimiters=None):             # <<<<<<<<<<<<<<
 *     r"""
 *     Parses a string into a kind of AST
*/
  {
    PyObject* __pyx_temp[3] = {Py_None, ((PyObject*)__pyx_mstate_global->__pyx_int_0), Py_None};
    __pyx_mstate_global->__pyx_tuple[22] = __Pyx_PyTuple_FromArray(__pyx_temp, 3); if (unlikely(!__pyx_mstate_global->__pyx_tuple[22])) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[22]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[22]);

  /* "Cython/Tempita/_tempita.py":741
 * 
 * 
 * def parse_expr(tokens: list, name, context=()) -> tuple:             # <<<<<<<<<<<<<<
 *     if isinstance(tokens[0], str):
 *         return tokens[0], tokens[1:]
*/
  {
    PyObject* __pyx_temp[1] = {((PyObject*)__pyx_mstate_global->__pyx_empty_tuple)};
    __pyx_mstate_global->__pyx_tuple[23] = __Pyx_PyTuple_FromArray(__pyx_temp, 1); if (unlikely(!__pyx_mstate_global->__pyx_tuple[23])) __PYX_ERR(0, 741, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_mstate_global->__pyx_tuple[23]);
  }
  __Pyx_GIVEREF(__pyx_mstate_global->__pyx_tuple[23]);
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_tuple;
    for (Py_ssize_t i=0; i<24; ++i) {
      #if PY_VERSION_HEX >= 0x030F0000
      PyUnstable_SetImmortal(table[i]);
      #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
      }
      #else
      if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_slice;
    for (Py_ssize_t i=0; i<4; ++i) {
      #if PY_VERSION_HEX >= 0x030F0000
      PyUnstable_SetImmortal(table[i]);
      #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
      }
      #else
      if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 7; } str_length_index[] = {{0},{1},{1},{2},{1},{2},{8},{4},{9},{8},{6},{11},{13},{18},{6},{19},{26},{1},{110},{25},{21},{107},{1},{1},{5},{1},{2},{1},{2},{1},{5},{8},{2},{4},{4},{1},{3},{1},{7},{8},{18},{1},{1},{1},{16},{23},{72},{72},{22},{26},{46},{58},{28},{40},{42},{111},{23},{20},{18},{17},{46},{38},{3},{13},{12},{4},{45},{45},{13},{22},{17},{16},{41},{51},{58},{58},{33},{1},{12},{8},{1},{46},{9},{18},{28},{4},{8},{5},{4},{3},{8},{32},{3},{1},{2},{39},{1},{1},{2},{23},{9},{5},{8},{1},{4},{2},{12},{8},{8},{17},{17},{23},{14},{14},{19},{24},{25},{23},{22},{27},{14},{22},{19},{11},{20},{19},{20},{20},{19},{28},{13},{22},{21},{14},{23},{23},{20},{32},{29},{29},{6},{15},{15},{15},{15},{14},{18},{14},{17},{35},{21},{7},{8},{12},{8},{9},{17},{9},{8},{8},{8},{7},{11},{11},{11},{8},{8},{8},{10},{6},{8},{12},{8},{11},{7},{17},{18},{11},{14},{5},{11},{5},{5},{19},{10},{15},{9},{10},{15},{16},{14},{13},{18},{7},{3},{16},{7},{4},{5},{9},{8},{6},{10},{6},{4},{4},{4},{4},{4},{4},{10},{5},{5},{17},{17},{14},{14},{17},{1},{6},{6},{18},{3},{4},{5},{11},{6},{7},{7},{4},{7},{7},{8},{4},{7},{6},{3},{7},{16},{12},{15},{17},{8},{4},{10},{10},{4},{7},{1},{4},{4},{4},{6},{8},{3},{10},{7},{6},{6},{5},{8},{9},{7},{4},{6},{4},{4},{4},{8},{1},{9},{8},{8},{12},{13},{8},{5},{3},{13},{13},{4},{9},{14},{15},{3},{17},{12},{9},{7},{5},{4},{1},{2},{2},{7},{5},{5},{7},{16},{2},{18},{4},{5},{4},{1},{3},{2},{4},{10},{8},{9},{18},{3},{4},{11},{6},{5},{4},{6},{6},{1},{5},{7},{7},{3},{4},{9},{10},{9},{4},{10},{2},{3},{6},{4},{7},{8},{2},{3},{6},{5},{10},{10},{9},{13},{10},{9},{13},{14},{15},{34},{6},{4},{5},{30},{4},{6},{3},{3},{8},{4},{7},{5},{2},{2},{2},{4},{8},{6},{6},{6},{1},{4},{6},{4},{5},{10},{3},{8},{8},{9},{17},{5},{4},{10},{5},{12},{9},{10},{12},{5},{6},{10},{3},{6},{5},{3},{7},{10},{3},{5},{8},{16},{13},{12},{4},{10},{8},{8},{8},{6},{19},{8},{15},{5},{4},{11},{6},{5},{7},{4},{1},{5},{10},{6},{3},{7},{12},{8},{6},{8},{6},{4},{9},{4},{8},{2},{5},{3}};
    const struct { const unsigned int length: 11; } bytes_length_index[] = {{2008},{49},{54},{378},{69},{26},{180},{56},{11},{26},{21},{10},{72},{48},{7},{33},{45},{27},{9},{11},{18},{17},{18},{323},{99},{113},{307},{77},{122},{137},{50},{461},{105},{55},{77},{69},{68},{383},{465},{332},{292},{540},{143},{64},{205},{83},{268},{638},{142},{29},{58},{82},{389},{30}};
    #ifndef CYTHON_COMPRESS_STRINGS
      #define CYTHON_COMPRESS_STRINGS 90
    #endif
    #if (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (6290 bytes) */
static const char cstring[] = "BZh91AY&SY&|\347\264\000\001j\377\377\377\377\377\377\377\377\377\377\277\377\377\377\377\377\377\377@@@@@@@@@@@@@\000@\000`\032L\357\204\221m\201\357l/@\3431\273\3344{i\3579\310<\264*\313(\355\200\001\252\240\035\230u\047C@\036\360\361A@X=\331@\371\030\034P\032\010!\024\3315=)\372\021\251\3457\251\250\323\310d5447\210OI\264h\324\362\nzi\340\214\2052oQ1\352\232\000\365<\2432\200\320\004\023I\220\206\246\211\372\251\352\017I\352hzi\036\241\350\232\006\200\0006\240\003\320\362\223@\014!\247\250\032h\365\000\032b\t$T\365\000\000\000\003\047\242f\246\236A\017P\310\304\317%7\246\250\336E6\232\2154\006OQ\246\203 \3311@$\322\210\211=F\224f\217H\236S\324\3644\322d\301\244\014LF\233H\364\010`\230&\323@M4\014\232h\320\321\2406I\210\252\177\250\220\304hd\323@\003CFCL\322\036G\251\251\2404i\211\240\301\032b0\201\202\014\23210\201\204\t\022\010\002\000\206\202\236L\2152&&\232e4\312yF\232z\021\20441\000dh\320\000\003M44\332\232h\224\230\275xDc\346\004]L\262+\207{\327\354\034E\355\276\276\250\033\371\237\020\"\210\201\221\003\001\237\257/\367\334]\241\003\333\210\200\200\023\003\267\035\301f\373\253;\206oJd3\242-\334\205\252\030hHu 5%\265D0H\005\253\267\"PSL\013t\354\262\315N\236fL\2317\257R\000|\350H\304Y\005\222,\025\r\256@\262\304\250+\021z\275`t\336\325\241h\255\013l\353\017\376UJ\241P\252W\205\236\033@U([\222H0bI\261\r\240\033\020\206\300\006\300lIQ^\025\276\300\274\317\033A>{\264\226W\332\027\027\332\270\362\313\350\371\"\245\343a\2444\243N\233\326\362\250,I\203\004\333\0306\306 1\214\005\340k\266\033v\361g[\300k\236\020\035bB,X\260\026\020\212\003\030\241\005\010\263r\212\303\266\335\250\210\322k\216!\r\211\030\214<\253f\273K\370\341\007\266Ysm\215\025\302D\347\r\250$-xk\321\256\242Zt\301q{L/R\200r \226\020\n\361\341\233l6\014\330\302\311h\322\354IE\2131h(\212\010\321(\254\027]\327d\337H)\026,\202\204P\005X\261a6\2065\006E\021\031\261+\016\344\322\034T\325\317g\240\333\247b\274\273\007\214\224\233l\260\320\203B\014\0225\213q\227%)\215\204H\020B$\363\002\017$<(I\004\3010""\021\320\247[T\321\266\350(\266\343B.\226\231)\240f\216q\245)\216G\323\206N\047\023\207\001\240\330\r\231\342\256Xc\206e\204\375\315b\313u\022\304c\316\033n\030@\323m\203cm\262 \305b\213\222\303\013\304n\032\0060F\t\253\2563h\301\313)&\341\017\025\2121Fb\312\212\236\224`\2616\323\006\361\311\212Y\\,\226Y\031l\367E\2223\213\303\004\242\022\305\204\214\020`\203\000\2772\342\363\242\3437\213M\205oE\345\352\362\224\275\n\360\226\005\361\r;\225\301\236x\236\273\357\343\273\330\017\000\033\010\365\342\261Zw\321ra\200\262\0140\034C\272\3439-KJ\027&\274\227\234\367!q\\[\223-1KhiS\005+p\034\3105d\007\317\267v`\211f\2269\236NT\336\316\017#[\373\270m<\0304BkQ\ry_\311\332gr\0168\341\001\006\264\332\003\376\030\241\237\211\210\371\237\273\370x\217fz\363\217v\324\204Y\370+\273\003K\226\211D\354\346\r\365\374j\\\256q\255\027\310N\247t\351k\355\333\223\370@2/7\232\366P7\202\264\035Di\275\034\256`\301\272\222\242\3510o\315f2\305i\2304\315\006\227\331\240o\364\313\241\306\315\225\324\2001Y\377\276\021\243}\236\010R.\372m\031\341\233wM\242\300\t\203\261\204\020\234\220\202,uQ\260\030\275]ywO+\2106\227\n\306sc\204\242\233\302\2647\n%\265\234\022\254\355\226\334\336\351SNv7\023\242~n\343\336n=>O7\261z\301{\200\213J\304\013\213\360|7\252\031k\302)\354AL\245\363elP\235\0351\261\332\305\021r\272\222s\234B\220\310-\212\r\225\216O\036\026/Q\356\231\237\245\353\270\304\321\206\002\304\026\013\017\223\342\306\375\030\037\014\357\35200\024\375\236\313\303j0\300\323n\317N\343\353\261\036\317{\354|\311\213Qp\215]\017\213\217\353l[\003f\315]\030\213\020\307}\300\\[\3439\0276\247\202\300\300\345\372\270a\241\\a\357\351\377\254\372\016\304\327\2252-r\204I\346}m\277gw\227\361\350\3649`\242\036*\017_\330\352Y\330\253a\325\301-<\226\035\274\013e\265y\221%\321/\210\244\332c\006\344J\022\021y\177\232\362\376s\206\203\244\266\337\r\266\364\371\217\237\356\336\034\037\343\202\031\250{\037\325s\006f-4\325O\334t\014a\300\3625s\215\000\201\006A\216\373\241<\\,!\335\314\242[Y\030\3669\255\246\236}\031\014\320""\022\001\t\032\263p\364\246H\356\2460\300\3173\313\351\006\252\31165\255j\265\241\210\241\244\004\206\"\037\232%\321\3566<\242\030c\345\221\003%\211x\274\375\356-+\0034\243\3043#0\005\"$\201\023\020$\n\373\007\347x\027\207\n\315s\347\307he\341 \312P\302\253\306A\300s\022M&\335\037\001\222\"ES\322P\320\272\022\r\325\314\313S0K\250\347\261\025*\221[\217\255\334]o\255\334\\\256\013\202\345\273\344.2\262\313P\210\000\200\264V\207\301\344\272\177~\320V\253Q0\266\277q\230\032\376\365\302\271\005\300\\\213\254\240Q\024\025)\344\355\252\251P\337\314yh\212*\\\\x2\362~\237\213\233\363g\342\234\356\236Q\3369$RAI\222.\366\007W\022T\254\014\036\244r\216W;~q\302\331\231\267\273\202X\022e\t\007\331\035\313\0167\353?\332}\275\274Uy\373I\340\036\017\007F\275\230\335\200\020\001\274\210\\\267\023\227\020\2611)\213\322]\243\227Ur&\035Ra\233R\240\\\341\322\224u\273&\251H\047(\202\2204\317LC,\270w[7C\263V=\231W\021X\031m\372f\233\374\037\323\217-\t\366W#$\214\203.,pK\266\013,A`\254\003Y\244\334\217\303\310\371>\031z\276\376\321\177\273\324\034\2377v\264k\rik\327\311o\047\237\207\370\314\274\013\300\275^\027\234G\021\321\253\024\\\\\213\202\353\256)\322\320V\252\265+\365\374\277\347\3679\374~\215\332W\223\206\220\322E\240\323M7\353\367\266\345b\026\265W\255\263\004\244\"\006\013.^?\306E\377\207\346\034\330\343\342x\234z\235\221\201\257\222\374\337\340\335\305\177-\344\374\270\034W\337\362\306\204X\322I\261\260M\006\373>\357\025\271\366\3517\311zun\361My\247\365;\224)0\032c\030\233cM\241\262\0247\023\030& \267\223v\230B\351\020H\r\047\003\245Nu\202\262rSubf\241\315\270\222(),\026B\253n\245M]\251%\000\210D8WU#V\333\306\266+\023\224\020\265`x\372H\220BJ\007\265\266|\326\370\003\367s\354\036G\233\365<\364\341\257\347N\047i6\210\224D\342L\\\362\212\277o\2507\233\326\364q\256 \340\270\351\313\312:0W\340}8!B!\202\030\301\014c!%2\nJg\330\366)AAJOk\331\222\222\020 ZZ\376\316]\312\216\034\333\275\307=\206\2736l\317?\033\374@\021\032\370xe\361=-\332\202\357\256\t\026\010\2142\260\340\315\362f\r5""\035\037\3611\245d\232\202M(\206\000\203\241?\023\337/\351\223\014\014\021\210\002\350\316_7\004\302\354\372\215\201\202\002b\316\321!^\226t\361\375=$\223?w\232\200n\3554\347`\300\212\230\2010P\335N\301\177\226u\323\274\270\315/\023Ic-~\271V\261!\264\211\312\004I\355u%r\257\246D{\324\333\364\257\222M\031\225\010cN\377[\234\347\233#3D\022\223-O8\273}Kk\014i\320W\222r9<\316\215\022*>t\246\004\322\315\321d\252a\005\324\324TKX\031y\346\326\302\235\211\212GE\340M\301R\035\354t\021\205\031\031\236\244@\330\264B!\360\362\273\235\263\205\036\330#(\210\213\234\335\224_\265\231\266\357\316\364q\333\334\027\274\330w\022D\276\332\371\304\014c\371\031\374%\005\324j\374C\300\335\214\227*\327\216\277\210\212\026\035\0073\025\320^\310\376\320\321&Q\001T\n\326%Z\03205\022T\376$\255K\035wt\362G\332\323\227\256j\244\3239\241I\047\273\000\2418\371\353\004\223d\\\240c\214\351\226\304:\033\300l\033\232\3319$\203K\003k\331\020\030\016v\311\030`\007X\005\263\333\362e\357\367\275\001\340\210\020\200\0364\017\014\017\030K\212J\203d\364\252\244I\276\353\312\244\3025\317N\010\3100\246\301l\334\227t\310\233\322f\220\302\254n\367\343\232\267\363t.\256\007mC\350\t$\327\241L\262\347\356p\217C8\362\305eg\n\207\233\257\023Z\336C\207\310\333\263]L\310R\343\034e\200\354N\223M\343q\201\356\316\01471\220\251\021\257\t\243\226\014\033FF8\355\362\345\204b\260\204\335\224\244\310\200\224:cB\221I\026\321/u\257\014\353\361\273)2\353\311\211#&\004C\200\033\014\006\305)H\355\333\340:\203\200\034\027\017\203}\377{,C.7)Pm\304\003\035d\245\024#i1\270E_p\3412\252\300`6\266m\211\014\257\345\247\027\372\377\264\346[\344\316<<4J\344\322\217\317\357[\274\246{`\365%B\034a\327q\214\244\003\t\274,\303\207\017\330!\242\312\2333\273\231s \346K\230\357\347>\227O>{uw9j\221_>\366XJ]\354\267\317Jx\250&(\353Q*\307\002\2767YnR`A\214\216\230eC\002\037 D\211\r.@Y\214q\274&$@\325\255\024\347KBa\0025gJ\334\"\217\312\255\256\047\0476 U^\364\222\300\335\342D\0033D\215\245\016q\030\320\260\373\300\376\036\027<\354\370\244DE\231V\213""\031I\223\320mP\2712\307\324\326\035\357\336PdF\010\0071\261\3161\201\355\215\304\255\016\256\335\026\206\374t\366\337\2028\331\364\306\332`\201\2108^\330i\313gjq\236\234\337\217\035z%\014\211o\256Y=d\241f\006\213\374\362R\335\347k\256\335jf\010m\331R\303\241\004\317/\027J\265g0B\215Xp\000uN\251\2422\362-\272JJ^7\215\327\343yh\351\024J(\242\266\300\353~\311\374\260@6\223\013\203\343\202\215\311\326\024\211\303\205=\025\360;Q\214h\241}\263\324l\312\271R\324\3724\355.5o\262\035\024\350\207\223R\201\333Iq\037AF]\375\341\336\227\177z\357\333\312v\266\327\311LI\272\335\376^98\310\007\032\334\257+{\355k\307\340.i\263g\037\217\256x\367\000\310x\262#b#$\267\231E\031\350\230\245=\241\260P\017\003\207\016\005\300\016\005\300y\"\373\3670\324\301\246<\007\224\274\343\316z4\355\262\206\332Q\234\216\035\325W\036\211\307&\026\265\210\217vR.h\253\243!\264\304o\r\373\215\236^=\213\006n\005\251\300\372\343\021\017W8RH\033fK\201\227\017\272WR\274^c\240o\2409\321\250;\374\307\0356m\207\361\306\341\336\027\010\240\353>\034X~\314\024b\360\255E\200\360\366\264\342\013\370\373\364}=\372r\303\t\367\317\3058\314\024\025\330Q\3362D\020A\306\363\361\331\342x\316=O\026\2128\327Z\340\320U\025\005\005\324Q\214\006#\032m\202l\363\321[\312ai\253\255\232s\364-w\251\243T@\316A5\232\225\375\357\213f\335R9\226\027\351I\355\301\204g\221\347SH\247p\035\235\2360@Q\347\333S\264\362\367.\017\201\021\333$\272\271\r\024a8\216\"|\201\330\207\360Dffy28\272\313\345,\230\332\215\035Z\003\363\332\321\303\237\217\237\250\004c\343\204\214^=\034\320\335\t\304N4\374\350\325vr\013\047u\336\252\362\343\267\215\204!\2520\244h\331R\232\343gF\235\271b\215E\320z\030n_\277\254\324de\243e\367\022\316R\037^\344-\017B\210E\020\025=\242\375\022\2712\252\326\210\217\017\"\316\364\222\255\354-\244\020\346\227\206\275#\244\3565D\3472\211\340f\356&\255\306v\010K?Iq\373\000Mjv\207\201#\300\215\326kk\013 \207\315\004\006\270H\321\024\353\332\202\371Uh\232\352bc\tf\343\215\301\325\360\336E.V\251i\023f\327\252dZ\306\2342\342@}}\342\322""\322\250\265@\210\316\nZg\033\020\311\213\013\202\332\210\311Z\336\267\256\337\336\230\316\272\300*\233H\264\243X\310\n::P&\235\301\357\\\307b\304\301I\365+.\255\307\013\177\027\\\360\320\230\310\310\262l\260\354\331\221\310J\031\263\000\316\020\020p$\341Y\343\307K\366D&\210;1\371\2763\211q\232\364|\034\362\345\252\360.^\264\220\303\260\212\\\026j\331\350G\344\313\217r\0138\032q\275\253\301\205\21044\323\005\013\035\367V\204\310\213]@<\217I\255\030\344\333]\270g}\270n\rl\335\"\033\353\014-$\254\275\020\3229Y\227N\313\021\263\347\207+fW\233\026$\247\277\223e\334\332\241N\303C\311>\336\203\214\341\202*n#U\370\336:r\023r,\312\262\234\225\263\3510\324\203\310\2745\344\235\001\205v\354\351\020\224\225\220k\210\013rFI\315\311\341f\032\220d\332Y\202\347\325#\257\346\344H\320[\372\027\255 mVh\365\306\277Qc\254\374\007\1772<\254M\001\316\013\324\013\324\217vd\rL\230\342E$Lsr>\321J\022\243\224\252\242H\222\035L\314\301\004\001\316-\210\231R(\301\004\2452\304fn\212~-w\316L\344\336\2720\300<\n7\235\223(\347\224\334`\352\305\305\255\255\261n\263D\256r\034\321\343s51\331]\216\331\265\301\270\226s4\361\267^\336\337\r\275\n\351{\0471r\262\353\247jS\323\341\220)\032b\031\\4\007\331h\006\301UQ\211\263\311P<\343T\361<]\237\231\275P\326\024\364T\267\303\031\310I\337\354\t\0261\241\027g\025m\2154E\221G\352\247Pt\256\256\236\316\313\226:\016\243\313(\357\316\262\332N\311\355)>\303\256\214\2546y\254\2066\244\346n\266\264\204\353G\"\220\027\027\336F\253v\340\347h\331t~6\347\260\327S\277\3014b$0\005\237\256\354\325\241\366\362\321P\270.\353\260\266\355[\243\031hZ\365[{D\314f\023\316\022\315\r#\010\221u\263Fb\027\265j\317\271\350\0105)V0\304Y\021\010JgB\032\231\025\020\007B1\327\3051\241\355\313\273A7\267gw`.\270\261rR\267\373\226\215\233\363\307k_n\302\374\263fN\256\225\237\266u\213\255t\305\335\247\026;\244\"M\006\206\206\304\216\243\n\326\200\332Q\261\374\223&\334\241r=\356\370\002\234\361\026\3311\316X\272[\026\243\317\206W\261\023n\020CJ\004\342\022\3310\t\207?^@\333`\024\004B6\235e|""\023d\242\254\205\022Dm\222R\025p\316\371\r\333mlET\230 \305\210\2231\033\305B(\230\371s2\035\334\334R\223\0268Z\031\025\010\207\016\001V\033\347\032\317\022.\253\211\333a \341\211\033&\257\t^\361M\340\264\311\267\261\266(\" \213\026\t\271\373+\263\030ce\331E\272\033\034[v\2131\306[\032\302\272\230\301\230\300\333\206kb\035\307x\301%\004T\241-\223\243\232T\206\240\264D\000\034\nf\006\343\005F_\312\227\"\027*K\270\016\345\334\244{\234\240~P\334\027\255\21566--z{\016^\265\253zE\317\342p\325\340q\244\357;\222\274O\320\rh\027I\207K]\307\t\320\234\243\317\3404I\302\ru\255\232c\333\016\313\275=P\357=\222\223K\251.\244.\205\324.\223\311\364yt\003Z\237\333\201\370`\233\3649.\2755\237M\224\344\266T\\S\223\254\216\3255\260\304\347\017\216\264\237\344\337\275oA\275\035\313\213\337\273\326f\321\207.\271\"og\264\267\306\266U\272]b\363\205<R\241\254\326\006\263Z\327\317\270\277\001\006\047\261\2446$\332\271\\\"\345\337gOr\331\270R\360\r7\036\371 \022\234\254\222C\241\206\350\270;l\032\030\245=\345\267\253B\004\031\254\216_\204\366\201W\212\253Z\342>\220\032\204\376J\"\230U{V\013mj\025?p\017\177vR\363\034o\342\270\r8|\277)\217\323\272\266j\t\254\047h5\021\317{\207\364\343V9\210g\376\000\013\214\270\346\217\001\001\306@La\372XQ\200\033\354\250\333\002\265\n\377\3247hO\303\030\022\331dR\214\234]\366\007{\353_\222\225\315\251(\302`\0167}}\321/>\204\237\346\0372\007rz\230\304` VJ\221BV\005@S\220\301\241VG\370\377\244\362\177\2560\317\253\365\250\232fb\037+\\\214\035S\014\006\204|\316\177K\313\361yw\340Y\240\276{\036\301g\353%\261\r\354\220\250\235\240\264\321bqG\037\017w\327}\316\360\\\242\201T]9\200\035*\252\253\256i\016\246\031\225-\260\007d\216\251\023]\355\023\330\010\372I\300\340\035\372\023\245\035\370\270B\230\260sHW:\334f\331\245j6w\315\305Ru;\276t\270\277\3031H\366Y@$j@]\210\023\003\305\224\005\332\201g(1\014B\355~\357\311\036\025zq\370g\240\272\013?]\245?\344Y\200=\270}\260?\365\r\247|\334\021\276\242\026\225\215\324\321\361#\376\037c\355)\222\207\250\003\237j(\216\210\350""\220\330\266\201\214\267\351\211\333%\237X\257\340\036\366\021XDYe\030\035\023\036\257G\371\021\343\231\237\274\231\027\013\324Q6\002\3075~@\272\"\215\006\210\203W\010\t\026\2062\215\244\010.\031e\347\276!\317/\363XY\225\351\373\007@\350\n|\271\246\271\233qS-\264\246\254N.\035\307\001\017N\027\355\276\346\364\271\277W\334y\037\250\034>`^O\226bJ\362\212\354\002\000\222\047\231_\211Dy\267~oe\212\336\240\240`2F\323,\"F\366\2663\327\2173\312\201\331\003\205\360\013\277\313\303\301K\204\261#m\022_K\016\236Y\326\303OB,\356\336\231\355\316\376\374\336\212C\007\365\340\344\217k\203|\372\347\210\327\343\023\3076\342R\020x\3665\024 l)q\2566\24467f\252\264.\216\016\261\251\241\277+\010\335\256.\220\036q\364G\027j`\227\004Pk\331]n_=\345\313W\225\225\231lk\225n:\345\255\341\375\t\337\274\344\352r\217>\007 \037\364\216O[\226\346\243\250@\352\032I\263\216\264\005)\277\317\202\265\350m*\315\343L\254\310:\336\237\350=/k\321\350\364q\353z\217Q\246\252;\332\372\272d\024*t\211\"i\261-\243\215\205^\325\217M\256+h-\363}\336\241\t\\c\224\256\206B\216\004\330b\"tP=a@#\001\004\006\256{\3004l!\256\026-y\357\3306\\m\243G \271\370\"\270.\377\0225\246\363c\"s\rD+\302\030\367\261 dh\022\276\355\253&-\203\266ij\343\311\203z\013\205J\353\226\353\220\006=\260\300\0229<\"\027\272&\373\356Z\341\341\034\014\340^\001T+n\2547\036l{T\271\277e\r\206:\274\330\247\020\205\352AN4A\260n\2136n\013\273\333\366\324\374P4\246\024.\017\024z\3721f\247E.\307\350\247\245\223V\252\355\\.\r\r\031c\247\314\351\363\371\301\367\300\351\357\372\004\217F\202\032\353\343\234K=*\252\022YB\306u:\346>\377X\203\311\325\216\247Zd\321\262\226\257\005S\306\206+V0)n\336\335\033\266\034\201Z7\240\202\006\333k\320\322\3140\006B\250(Y\334\333^A\377\000\276?\0330\336j+\262\275\263\260o0\370\352QC\2713stm\356zB4\037\205\030u\364\034\313\245)\350k?4\321\326 \030\315>\036.3\310\370\272}0{_#\311q\266\305\204q\245j\225k\035\006VZ\3126\006\333\233\001\215\265\332\255[d\371\365\366F\r\035\261YOki\307\262\366\254\0255\347l\n\210u\030\245\311""\204\335\246#L\340%\362\212z\365)\203L\361S\305\346uh\022\n\2513a\252\217\206\230\324\361%:\210\232\3507\201\255`\312\2601O\207T\365SXO\326\006\312\253Y\314\3417\264\371\306\237\204S\350\322Q\251\300\322Tc4\356\345x@\245\252t\377\024n\371\207\323\245\251\277\332]aK\326\301L01\022\235-\035\023\243G*\211\352=\341\354[zG\237\3269\210\232\032N4\267m\035C*t\353x\254\240\335\023\236\315\023\265\337\357\317)\330\227\217C?y\317\372\304\376\304\351\326+\375^T\263,_\261\240\347\245\371\375\357\262\204\364\353\253E\204<8\255\210C\304\270\023\246\036 A\006\215\005\223\336\340&\301\017\027\34077\246\2625\343\020/\315s\0010\322\236\024\303\200\316\375 ]\306\350\260\354\031n\226\254\r\256\326\372\021r\000\314\354\260\312\200\3571\276+\374\362=(\344a(]\235\202w\321wf\346*\036\306v\276\265\371y\233]\017\233,\265\272\250\303V\217\221\351\200\373\340{/{J4=\024=\024\241\270S\217c\013\301TU\030C8d\366\301n\2128}{\342=\370\204\251x\264FJC_ A\217&oO\327\322\330\267\350\307\303\304\262*\n\220\226X\371\3759\243\321\313\317\344\334\360g\362\314\307\306\233\235\326P\212y\001\301\031\234m5c\203\036\311\243.\271\312\244\0304\032\266\264\307\363\274\026J\233\031(\023CZR\3621\345\254\014\265R\231\314\314\254\260/\n\265.\245\331\343\003_\243\006\315^\243Z#e8\363L?:\366\252\241\224\260\235<7U2va\t\260qb\311X\253.o\345\235\rb\027\244\362Y\023WUZRf\306$\325fMA\311\271\t+S@\306\325p&\256Bc2\016\242\242\224\353Z\3021[:TWM\325\304\023\260\262A\211\047+\230\032\273%\331\226\032\336\336\275\302f\364{9\304\003o\266p\224xbP\3651c\352\325\251c7\240GD\221QYY\r,\311\317\024\001\235\007\223\001+\325{9\213<U\305\346\"J\264s7\017%n\353\3545\275\016\325\010\253x\212\235\250\201\030)\220\242\313\206G\017G[ \206\020\320\301\230\321ux\202\226\002{\215\373\223o\232Bg\001ad\354g[\222\356\324\273\255T\252dl\307*\325Q\002C=$\t79\275\032\215JP\325\303\230>\344\"\230\242\361d\255+=K\204w;\315\251\000\031{\231+\0066\002\017\333@z\211\026\353\262V\2279W\264Sd\272+B#A\205\227UD\022\020@\321\246\254?\370\273\222)\302\204\2013""\347=\240";
    PyObject *data = __Pyx_DecompressString(cstring, 6290, 2);
    #define __Pyx_DecompressString_LZSS_UNUSED
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) == 1 /* compression: zlib (6717 bytes) */
static const char cstring[] = "x\332\305Y\311W\324X\333\027-mdP\212\331\241\273S2\010(t#\216\250\335\007\005\224\266\035Pph\265\363\206\252\024\224\024IQI1\250|\247\227\265\3142\313,\263\314\262\226,YfYK\376\204\376\023\276\337\363\334$\225\002|\207\363~\347|\036\311p\357\315s\237\341\367L\267\232Z[\233$\351\264\244\024\365\222\226\221$\305\344\277|NS%)\255\347Kk\232$\3454i\300\240k6\227W\203G\303,\346\264ei\240\210\027#\227Q%u\253PT\r#\247k\222\246\254\251\367%\275d\036\2340u\220\320r\306\212\224W\01436\3237P(\352\313\322\373\347/\026\346\236?{\365QZ\230y\372\342\367\251\205\0310\266|\177C\311\227\324\246\246EC\225\n\333\223\321\010\2213TSR\244\027\333\346\n\310\363\350]I7W\324\342f\016\253\225|^\014\032\240\2436\t\236\215\261&\210\020r\247g%E\223rYi)\257\247W1\261\2313W$M\2171w9\243\346sk\252\251\026\215\313\322\352&\366\227r\206\264\244\222\374\031\025\253\322\212\251fX?\312\206^$\222i\275\210a3\277-\031\0055\237\307\254 \222c\"c\322\213\274\252\020\177\231O%\350a[/\025\361IF\035\033\032\036&\365\217\214\214\\\275*\215\216\216\252\332\306\350(X-\224\314Q}\254\260\235\306\237>99`\334\273g\230\231\234\366\313=!\323/\367Lu\255\2203\025)[\322\322&\351\372\376/\277>P2\244\277\322\232\252\231\2230\025\275g\301\340\020\304\273\224\323.\r\263e\213\017\025M\323M\210B,HK\333&\324%\024\314\326\205\226KZ\216\347\350\303\214\232UJySV5\014\221\n`\271\rh23\034\320\341\t5\372\246\236\222\240\376/\350\2605\307\026\204Dcr^\327\013jQ\214\376\024\214\376$\007\002C!3[i\265\3002\027\025X=#m\256\020N\013J\321 \272\212DK\363\260\021\220.I358\256\221\362\227T\351\313\227\200\0310[\024\330\332\331\271K \270\017}\221_\260\236f\266\314\242\"\025t#\307\233\205\2325\240Zc\226v\204|\233E\230X\022\026\243\367\241\2202\314\205\321\341\331\320<\030\207\047\210G]5\264\313\244\270\214@\3370Q\234\313\022. \205\301\376\246H$\0146\t\267\275\312\323,BmM&\307\324\225\342\366h>\267\nF\226>\001\206\322\020\223U\24410\267f\014\rK@\363\212\236\031\276\3134\226\225\rU\232\323 w.\203]\2265\305,\025\325Iih\300\030~\2323\204\022k02\302\261/_""\3001\344\330\331\251\033\311\321\000D\316\215r\024)l\013\3272\004\257\206\251\024M)\340GS7i\3153\025F\033\310I\314\235\304x+(\351Uih\031p\n\307\207\237\351\022\376\363\026\000\361\316N\370B\373=\323AE\247P \244\200\035s\312\022\264E\241\2101\037\331xg\207\\\341\005\231g\005\301I\333\310\025u\215Dc\r\322\366\205\321\274\272\241\346#\"\306\242\206`\000=\022\227\361\227P)\365\243\246\276\252j\322\242\266\252\351\233\032\2735m\370\016\212N#\322\350\032\202\302r\016\032\327I9\001\230\224|D\354\360\302\330\242\021\2758\"\255\252\333\233z\261\266\275\021|B\316\267B\266\034b\307&\361\"=\030\252\200\035\205;\326\0079\2254\024\373\262\204x\224\323\0209\341TZZe\023\001\261\014.\262-(.\253\246\034\372\322\273\020|\314b\315\3078G\220\326\337\177\320>\024\177}\377\301\224>\216\364\1770\256\3444\\>\3769\364\353$\202\355W\004C\\\211\221\257\260\213\3645\330\231\337\330_\276\"\322\017\377)>\377\240\375\371^\031\375,\177\244\353\317\243wdPL\353\232\231\323Jj<\220\207r\021\305\220\016oD\023\270\205\233\344B\254ok\246\262E\222\325\202=\001\034[\177\241\177!\215-\370\032B\301\330\330\330\316\016\205~R\227Q*\024\364\"\354\375ugg\347`\304\nb\323\314\263\351\247S/\237\314\274\234Y+\230\333\263s\277\317<\233z:3G\227\347/\236s\310z\201 \245\026_q\020\237{\276\020(1\274\217\3112\005\tY\216\r\024\221q\342\003J&#\223\023aeV\257\r\253\0201\366\266\245\246ko\210\304j\021\002\233G\014\311\004\330o\215\033GM@\271G\r\347\262G\216\n\023\324\246H\234\350-[\324\327\344\020@\321\250QZ2\314\234Y\252\351eZ\315\306\036\241\22442}M)b\214\320z`\250^\231b\254^\237b\014I\365\300\020%\023U\216\202c87S,\326\244\347\227C\273\204\243u4\237s\\\256\177;\364e4\\\317\242\030~\244\232\320\351QcBt\3054\277\361\3157\366\211&\305n2cV\\1\270\244\353\371p0\322w\364JeM\3545N!\224<z\013\352\002\271\266\377\203\242\252\254Fo\017\003\307>\222=9\212?2R\333\201%\262L\260\221e\301[\310\262\274T\312!\031i\006=\007|\313i\324\237F\355\001\372\242\034C\003\252&d\201\313\220\216d\206#\337\221\271\351\316\260\212\251X\216\177\035\300[<""\006\367\200\336\232\222\323\370\256gJ\202\242\340V\\ey\275\244\344\303\347@\201\262Q\333D(\261&~\270\024%IZ]B\266\224Wr\254\325\230\202\353B\003\364\221\331\306\005\345\014\350\346\263\034!80\220\210y\370\367\332\232\202\271\222\241,\253BZ\336\203\237\"\340\223\260\331\"\215\307}:\036#\016\206\214\372HQ\027 \016\307\205\240\326\223a\255\003\036\047\33632\222\241PO\244\211@^ET>\020Y\347\310\252\024\n(\016\220#\177\306\237\201\277\rR\345\022\312nRDM\017K\204\276%\010\271\302\227\270\367\304\006\204\201\303\001a\333\360MX+|\213l\226&\260\251\305\364JI[5\322\201\035j\366J\347\rb\233u\224\326\261N\205H[\246\350\271\310\030@\"n\005\300\017\271.C\371\216G4\261J8IZGOPB\257\241\231\202\024RV\220\265\016\326\327\321;R]\370\034h=|%{\033\250\274\324`\300\300\335\2505?\265\016\006,\243\373(\322z\025\333\346)\311\252yC\025\245\177\270#\324\217\377\362\022Il\320\023l\047*FQ\302q\355\206\213A\245\206\252\241\226)\302\236AE\246\026\365M(F)\250\204SrF\316\321T\202\313\253\233\331\254\274\234\327\227\224\274\221e\204kz\2305\342XF\205\315\233r\365D/\304|6W4L\354^\227k\370%D\024!>\302\177=\374!\0233)s\221g\000\030\024\0168D\204_\307\213$~\246\225\001\263\313\350\262\013+j\276\220\313At\240\201d\302\255\210^2\003\031\2059B_\010\251\344\364\234\2413\324ke\n\341\221\313\342OzN[EE\270\272I-5\375\311L\213\237 ;\337Q^\254\241\343\314\310\350\214Lab\354\t\255\222\356\030\231z6\013\340\nU\322\325\310\347@\215\2351O-f\001\n5\323+\300\007\205\007\340AAi\271f,\223\212\"\330\3403r\372\222f\362\223\271\r\017\204\305\350Of7\320\014Dm\321\223\200\262&\034\325\300\215\235[7P\313\211\326\211\337E\004 \357\025O\344\006\342\t\020\212\036\010\250\342\205\264#\236`^\361\020\250R\274\000T1\032\221M\017\274\216\335C\267\002[\3752\026Y\217W\020E\"d\202\033\003\2660\322\320J\315H2\301Y-\3222s\245\220S\001\371\202\216\022\321\010\361\007\313m\320\237\254\257\222\315\315\302v\021\241\007\301\047C\177\244s\334\r]\203\201!\021bb\251\250\031\210\014p+\005A\204B\025\207m\230)t\317\3342\376\263\202\350Nq!\222B4\213""\310\032`\215{\004\243\220\317\231\006\234\nC\351Unp\270\025\343K\340\243\342\031\014\213\031r\313\210\000\344\343\023\007\321\307\032&\334\027\260*a\260\030\034\253\020J\250T+-Q\330\250\025m\306\266\301J\n5\025i,\010iu)-\236\336M\372H_\225\005}z\"D\261E\300\r\337s\237\305\035K\224\\\276\036\336\004z9O\021\003\367\332\214Y*\344U\"T\322\"\224\226\n\031\354\311\231\257D@\3226Jf\366\366\006\237\004\360\205\261%N\222\200{\374\2279\241\360\215)\004\3174\213\360DW\222\206\356E\272\3228\2474sS)j\364G\032\333\\\342\343\202\317\271\302\213mQ\302H#C/\266\237rs\216\262S\032Y\313_\245s\023)\233W\226\215\253R\270lD\n\253\205\332\2304\222\316\353\006L\037\037\022\305F|$\210DqZ\024\263\207\217\325\261\020}\017G\347\022)N\202rh\335\300AF\216bnmu\363\000c\007Wd\364\364\177\302\305\301\317\017qEg!\2078 e\302\273\323%\006Y\2140M _\353\233ra\373Zm\342\033\034\035R=\302\030n\2715\321\023\212LJ\013d\270\346gx\212\204<#\037\236\376\247\032\3233B\004b\215\035\266\306L\234\027\026\374\250\251\021\351\240\371G\370<\344\310\265#\301Ai\035\323\002\373\034\321\353\306E\214\222A\033~\271\"8\\E\332!\312\013\360\206Hc\033z\016\203\230\216\361\273\272\231\251\223]\n\224Gn\023r\020\316\205\223p-\326\331\373\217\361Y\242t-> \010\210E\021\263(,\270j$\367<4\301\307\271\030\026\333\244W\224\342Ht\204*\013\213\220p\010\253\024\360J\342P\047\370\352_\t\366\177\317\3747\271\374\357X\371\377Q[\034(\246\030\224\345\027\333[\362C%\275\242f\036\206G\245#\022\262\021r\361\3601BSLH\244\010b\254\216\016\236\343\\\205\236J\314\250[h\021\216&\022\377 h\0279\252\007\242\304\247\003\r\036\242#v>\240\323\370\200\271T\0270\024$\232\200\310A%\312\007x>\244\375\265\234vxL\331:4\306g\327\303\307\002\255n\207\n\225\237\251\233\301\340\213\355\211\247a\250{\301\245\220Z\233yH\243\017Q\225\230\341\240<\307\021,\\2\363\342\306\315\237e\221<e\016C\301\214X6\213\242:\242\266\030t\245\277\241^\r\006\321\322\307\271\";\206\313\251\340z\"\2169\215\005J\330GLL#8.\350t\375\306d\2647Q\226_\242\312\332\016\206\026\212\340\207\216\230""\0275n\004\037\212\224\033\314N\025\227\351\013>\270\211h<\010`\021\234\223\007\343/\351\007\207\3703\276\345\002#X\366WC5\361\335_fy\322\232\267\322v\262\332\330\\\276e\245\254\tK\251\266t\320\315Z\337\307\303\r\273\001\223\211\346\3628}\320\\\276V^\264\006\254u\373\270=`o9\353n\253\367\2662O\023\367\355&g\314k\2506\236)\177\262[\235\371jc\227\365\321I\375\325\\\276\353w_u\237\373w\237\357\255\377}\365\330\311sX\230rn\272\027\274G\225\311\335\267\376S\331\227\377\341\377C\251&\272\255ON\203\323\355|\361.W\316\357\336\366\237|\364?\376\351\377)\357\047\316\2241\335Z\346\215\306\253\2116\253\305~`\247\235\344~\342l\271h\365\332I\373\252\263\344~\347\256\203\201\301\241\340!\321X>\215\271s\330m\274\332\330i\315\330\335\366\272\303\034\256\331\343\366C\273\344L\273\tw\326K\221\3607\254\023\326x\265\345ly\275\332\326m\2559\343\316\003G\361/\317\355\235\363_\276\361\337|\360?|$\305\214[S\326\"d\337\200\204\341\342e{\336\206\326\272-e\037C&\310\304)<\336;\355\317\277\366_\277\367\337\177\250\266\264[\227\355v\354>e/:\003\316\206\273\210\335\351\313j\343\331r\311\232\266\301\0366!\323\254\007\214V[\222V\322o\237\254\014T6v\337\355)\254\203\362\024)#X\264\014\023*\301[\233\325`\005\366j-\277\267\317:\353\177g\032\216\235<S~\205\211\016\326\301W\367~\245yw<PhS9E\312\231\263\377\2005\033\205\001\003\202Dd\252\332x\232\344\276\016\2337T\317\266\221\004c\260R\222f\310\030\241\022r\366z\265\263\213^\r\300\350&\tY?lZ\267\354\224}\035&H8S\261\251\236\013\244\016\222\262\223\267m$\266\032\301\226\337|\311\351w\024\332\346:\366h\021|e\354\024Iy\nXI8O\330\320\341\202n1\311\\uY\013\376\271\253\356\224\373\326{]\271\263;E\372]\027<OZ\257 JKk\265\255\3072\355{\020\373\224\253T;:\353\336\367Y\346\2570\342\254\233\242\357Z\240\362\267\326\274x\234\265\206\355k\366k\340\212!1k\017:\rb\3467\222\240\245\374\310\357\270\014Bb\320o\371\301V\350\351L9mu\301\263L\350&d\272\335o\007\233\32560\314P\275\356\230\356\035o\312\233\217VtXw\200\366\214\223\212d8\343\237\031r\033He\035\200\343\202\335""\0018\305\327\377\342\264\203\316z\264\276v\253\266\264YMP\022Y\315:\316\206J\002\315\2463~xA\t\264\347\255U\247\303y\010\236&\\\325\273YIV\372+\331\335\251\330\342V{\301I\212\257.;\235\316\274\230\202\023D\017V\260|\223$\367/\\%\217\023#;\366\264\323\344^\361\026*\014\247\263\376\331>\360\375\331\273P\231\336e\325\001\371\325\306vk\304~\014S\233\336\270p\216z\003\010d\365\333\252s\313ME\270\032u_\272\353B\212\207\026\003T!k\356\267\365\"\240\365\202\343\2207\")\300\335HQ\006\360\036\006H)\264\235\200\314J\025\037$X\275\002\350=\326\026iK X\341\227\353d\350j\262=\334\344\206\333\340&\253m\311\375\032\306;\t\232\003\024}HEN\332\355d\307gA\306\234F\006 \363\372Hx\215 <\351\276\206\310\235\022\200>\353\366\273\014\254\307\3408\276\2227\270\342^s\347\003\340\267\303\250\223\204\206\300\350p+\277k\320Q\020k\346\311\267\026\340f\213\344&M\345\313V\322J\t\330\354\330\217H\227\320@\371\263\335I\237\2232\240zf\3627\277\233\320\234p\037{\323\225\223\025&^d$\363\026\337\323\372\323\354QBY\257\235\353\376\345\273\025\366\216_\0356\312*T\336y\313+V\222\3542\302\372,\n\301\302\260\207hY\017\354p\222\202\351>\036\277p\334ni-\277\203\356~r\223\356\240G^\033\337\360ly\203}\231>\254\206\241\027\373\\Dp\247H\337\323K\3173N\322I\355\267\221\231?\343\361\262\313+\236\260\325\332:\255\337l\305\336D\230\351\275\01046\210\017z`\302Nw>\342\262\306D\312\275\3415x\235p\317\226V\021\355\047\341\000\347\335q\367\021l\305\233\220ww\236\367\317\223[\367\236\253\336!E\010\256j\204\333z\374\236Q\334k\353\220e\017_z\235v\277o\302\273\206\355\222\024 \316\263{$\221\037\223\377d\257^(\361\2153\345,\270B\331q\225Q~\350&7\374\311]\217\031a\335\202.\222\3269\370\221\356\316\273\212[B\010\202[\356\307\006\263\336T\\\377\004\033R8\0207\n\020B\302\266s\310.\224T\033(B\047\254\247N\322\277t\035_\341\355\014\264l:\221\357^\027\t\224\202\347#\373&\271c+EW\272\275\244\300\303\t\200j\023\221\027\237\2209\243\235#/\020\231\006\321\257\332F\260\0477>E\340\021\365\313\206\375\3129\301\256\332y\336\036qXA\275\027""\354\t\266w\232lI\346\237\265\207\235\211\300=:\205\347\2553\224;\375\316\001\370j\016q\347F\245\201\363CR\\\0173\362\031Q\024)\200lBI\016a\006_\367\303\004\257\335\353\244\312\350\2133\345,%y\270\330\002\2412VxPJ\343\314\000\024R\202lm\267\372 >\345\207>\350-z\245\354\033{\033D5\205$\211\000}\035\2710\001\377l\020.v\035\362\317\333Y\266\006\210\237\205\006O9Yw\016V\355\252(\021\205Nf\207\003\370\031VL\306\035\0002\352\247\333\311D\3406\"\253B\255T;M\321w\215\302gE\372\244\205\203<\303\257\3435\037\017\347j\334\047\255\036\016\027\013\034\024\225\250H  uRp\017\302\036\033\227\306\303\017\303\210\315\354\301\342\000\023c\035\340\366\223\227\234#\026FA<\222\227B\335\026s\370\230\313\210S^\266\362d\267\264\367\310\177\205b\355M\365g\002nH\247\225\312\201\t\277{\330mwCw\332\017\315\037\006\026\022\215-r@\246 \003\301\245\367#\301\2469\016,x\311 \255\004`\313 \276\\\017\000\3078\2238\376>\245\372\274\245\374\214\3026\252\211\037\201P\274\316Y\014\301G\"#\022+\270=\267\211\277\201\033\210\030\335w\200\204V\244P\344\3179\3626\362\375.K\t\022\005\275\365\260.\032\205\047\335\206k\250H:\177x\353\325\216>\277\357\272\367t7\371\3273\006\034\205\016\252io\272\275^\267\267YY\336]\330K\356\245\270 \354\300\227\367\250\332`\262\035\010\210\037\021\253\033+\247*\\E!\031\371\307\222\242(\275\206\364C9\047\221\264\332\3114~\357\260\373\275\227\256\364\356\362\364m\204\2039\024\306\203n\263w\257\362\005\364\023\024e\276\220K\t\032\315-\301\177T\273\245\362\303\362\272`~\200\255\234\240\030\362\221\274\212\373\205\246\362\025+Ld\\SBb\361\024N\235\016&\310\004b\242\265\374\006\021\341\n\233\016[\030\010B7\301\3528O\227\025\341\257\\a\207@b\016)|\212\326\344\273\2776\313J`\026\353\001U\321\324\205$E\270\334\244\346\212\253\371\001\347\245\263\036\025Y\304\344\212\245\262\203\014\010M\006R\013t\025\t\260\341\206a%J{\375\017\247\277F\njYg\006.\320\210\362f\237m\376\223s\016\001\216\260\342\234\204\361\321(m\221\276G\330\275YS\357\251\214\0179\346o.\243\002\035v9\351\276\246\332h\237\233""\302A\332\326?\326e\315\377}\376\330\311\244\305\235\325\211\362]\252=\234\006QQ\317\323\313>\302fP\347\0052|\265oq\257G\345\016\345,Z\020U\251\343\204\016\252?/\241\274e\325^C\360/\242\246}(\234\226<\246\345\034wm\307\235K\016\343{\232\252S\206[[\235\337\265R\261\322\017\035N\370?\214{=\034\005\231\342+\224\271\375H\336\375\320\320T\320j\021\307o\220\215;\235?\334\242\327\356MxK\225\004j\316\304\356\354^\330\216A\313\242\047y\357\234\360\373nxo*S\025\316\302/Q\255\364!\340\255\240\343<\216\370\224\361F*\263\273\251\300\221\305\374%\016\342\323\\\327!\345\334\246\014CY(\205\242\365%R\344\324~g\257\337{\305\275\345\245\274\361\375\316\013\310\207E\226\344\004Wr\361\225\001\335\213\224\344:\254k0\370\t\216Y\017\260}\302\235\366\232*\203\273\r\207i\217\270\227Q\047\244\252\235).N\2468\326\304W\371\307\272\375\35614:\300\355M\224\004\201\003\261\335\005Z\010u\242\363&\3207cW\212\"\354xs\242Sk\263N2\000\023-\345\031\300\247\317z\r\304\362\213\010,|\3000\036\365\261\203`\271\201Z3j\240\001Bz\270\0043t\303\232\274t\202\\\047X\374x\257\301\237{\347\277[\362\227\226\375\345\274\237_\023|4P\000\341\254?\r`\277\243\252\304[\254\364U\346\251/\t\227tq\047\2308Y\353\262b5J\027\245\257\240W\343lF\255\025W\002\244\234y;\215\216g*\254Mnp\326\374\r\311\201\314\037k\224OyJ\004\366\270.o3\244S1]\206\332\233\022\252\351\346*e)t\276\303\312$M\334\262\270+\017Z\250\233\344\003\325\323\255\345E\224NDH(\311\2778\267\327\2767^\2758\340\274qg\274\344~D\003=\315]Hy\023E\016\271;\226\353\020\354\023\3431A\261&\035\331\366h\035\365p\320\3707ut\313\271\002\377f/\330\035\377\266\216z\320\033\375\nHB\300\3170\342 \227A\034}7\270\257\037$\225\354#6\017r)\264.B\353\206\210t&\342\r\207\025\321\266=\2646\221\366c\221\362&\030\232F\332\030\367\202\214,\346k\351\227\252\221\333\310\274\217\303\322\344\266\350\355)\260N\355\307\033\3055\240\203z\266\357\371\210Ft\321\340H\205\234\203\334\332\235>S\316XWE\310\272IP?\022_\342\253\254=\313}\314i:\215\t\222-U\213C\034\266\232\316\224W\031-Md\333>\221\t\030""\376C\034[\262\336\003OA:\216|\206\267\036\264\033\243c\254jK?\0353\035X1lO:5Z\0279\276\326V\304X\331\346n\230\0340>\212\246\300~\213\332u\374\337\030=\232\302:\020O\256\2438E\306\340\2067\357\005\047W\217\203\203\270\343\320\313\rB\244K\330\360{\250!IPw\220B\224\343\363\047\316\310\021Z\377k\240>F\217{\315YD\211u\307\233\255\244*\001T\377Dx|L\003\321\311\227\177\014\035\3255/U\027\032c^L\217\247x\273\227\234\001Y\254\047V\t\364\311\343R\377\352\373CQ \034@\035\035V\035\267\352\320 \374\274\0269E\335\360\222\004>\0349[c\013i\356fX\346\325\346\317\224U\353\016\"o\227\243\204!\263\235\342VM\024jU\003\333@\230_+\353\373l\033rZ:A\344Jg\003\351z\235N\030\272\221+\272\251\243C\250\374\275\322\260\217!:\223\355C\003v\212c~\202\353S\204\246\343\366e4\205\307.\370\027&\220\370N\212f\220\312\236~|:\345\316\007A\351\350\260X\002g|P\323\306\356x\003\312\353p\036Q\343C\250\027\216\324(\372\221E\200k\302Y\346\254w\232\313\333p\006\325\367>\325\214~;\227\t\377Q\222hI\262\231\216\003[\023t\374\\M\326\200\266\3444S\236\215\017E\330#\315~3,\376@\005K\222K2\277\213\232\200\025\250}\2338\243\304\037;\372\306\353~\202\373\277\277\333\217\235<Um\354\261\326\377>u\354t\007\330\336v\271\020\273\203\030\026\364\257\321\233\t/kF\211\223A\222|\277w\202pt\201`@\201\356\216;U\367\031k\300\227&+\227*\350=\206\335.W\215\016\335\332\017n\363\005\001*\347\031\225\241\335\376\335\314\336\025\177\361\255\377\366\035E\334\035:~\251\266\241\330\250&\177`=\211\346\247\327\376\216\375\245\205\242\306\t\n\300\244l\301\353}\232\373&\0035Y\256;_\274>:}\351\245\260K[P\231H\257M\216\210\345\334\274\237\267\257\362)\333;\016\237m\324\205\274\242\303\035\211\232t\372\252\215NU\037\332[ \327\357qm6\352\254\373C\017v/\241\212\030\032\367\272<\225\216R\250\350n\006\237\347.9}\316[\367=\312\304\271\335W{\215\376\213\005\177\001\362\246\375t\326\317.W;\373\250F\234\367>\3556C\301\235\250\326\354\017\342\234\351\2218\201\350\242\322\360\r\002\361\047\227\217\t\356\002P\303\356\204\273\002\273\364WV\367:\366\260\210Z""\327.:\356\233s_\241\201\242\222\264yobO\0213\235\334PW{\373\235g\310\242]\347\354\013\310x\247\275\016\3571\227\256O\366L\377\025X\242\037M\204\240\250\375\300B\037\354\177\022\371y\300+\321\261\252\350\264&\255w(`\021\351~\364\177\2443\243\004\237\006\222\237N\325?\223\207^\341\366>\336q\225\370W\220\024\271 \257C\362J\205?\025\235.\367\210>\223\233\353\007\341\227\017\312i\252\334\366\033\251\305\n\277F\016\010\177TJYh\361\256y\251x\037X\327\377%.\204\247\346\344\315\341!\242\311\207\235-\364\213\320\264\323*:jr\364\004\362n?\002\300\373J\203\237 e\210\363\027n\001\271\335C\037\375=\273\365\010\212\350\204\367\250rc\227\261\375\013\237\047\361o\t\375TB\354\207\277\316\210\003\317-\nsD\261\331\277B\212K\366\373\375\223\310\035|\354\200p\361D\370d\013\312\336\216N\302\343\214-\316\202\223Tc|\241\316\241\332\026\234\237\335\345\304\006\020\367\373?\374\3545\200\365\363?\004O\1777\036kM\372m\003\316\202{\336\237\230\331]\244\276\244\315o\303.\004\264?*\353\273\r\265\201\to\022\365\257\"\316\010\372m\315\235\242\303\211\337\371\207\266\300\305\351\224\351\006\264\362\304\331\244\263\346Vr\311\016\3737$h4\373\235`9yA\234`q\277%\020J\236\213\336\344\026\0270\214\276;\316\024\274\340\025\3645\307\033\366\376\010\227\244\336\006\250=A\213\202\325\324\322\360i(\373\302l\330\274\005g\024\224_\246\354w\216\352\336\364.V>R\350@\241\377G\354\267\031r\356\350\334\303o\241\346\247\261\331of\352,v\237\003@\214\240zk\244\363\311\2248B$\221\033\202}\376\027\333R\250l";
    PyObject *data = __Pyx_DecompressString(cstring, 6717, 1);
    #define __Pyx_DecompressString_LZSS_UNUSED
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) > 0 && (CYTHON_COMPRESS_STRINGS) <= 90 /* compression: lzss (9324 bytes) */
static const char cstring[] = "\377\n\r\r\n  \t \377around  \373at\000\001 line\377  column\177  in %s\002\001\357file\004\004str\277ing %r\033\000s\377ide expr\377ession n\377ame= out\376\t\rto fini\177sh last(\010\377#%prog [\377OPTIONS]\377 TEMPLAT\375E\226\000g=valu\377e\n\nUse p\257y:ar\013\004 L\000s\377et a Pyt\371hu\000#\002; oth\357erwi+\000all\265 8\002s\336\000e\n\256\003s\363.\n\313\000\226\005of a\377n if blo\373ck\344\000with \373no\305\010\047deli\377meters\047 \373kw}\000 is b\355e\374\001de\363\000cat\373ed\233\"avor \376P\000correct\377ly spell\364\033\000?\003i@\002. Pl\273ea\234\001dju\205 y\367our\352 de.(\373))\377!***,,\377 ---env-\375-\306 put-o.\367pyc\001\000o::%\377s<<stdin\373><\202C><tem\377pita fun\373ct\201A=>?Ba\375d\274!ument:\324\250@\014\001f\236\000(\334\000\"i\367n\")\325BrCan\377not deco>\305@bytes\260#\330C\316\262@uni\027\0025\001de\377fault_enh,\000\377A\267@v\376@d)A\004\006\024\002e ,\005\270BA\006X\003)\034\366\311B.T\314\003._lo_operC\337B/\017\004\363/_\352\004\222 Exce\355p\357\002ra\363@d w\275h\244\204\001pars\237\204\001a\365 \230!l\241@\n   \353 E\236\204\007m\371!be \323{{\316\004\252`r\350c}}\235;\201a= f\223\205\002\376\204\001r\377Extra po\273si\334\"arg\325\"s\366\330 sF\226\205\001to w%r\340@ \254C\234\204\001(R\005\254@\237out)F\227E\304 i\375nC\003doesn\047Ot en\270\000\372a)N\001\367If \225` pas\266\366\205\002a \311\001le\310F,\330\032\002\276\002\032\007di\370Bar\377y-like o\177bject (\320\204\002\367a .\375`ms()\377 method)\375;^\002gave I\277nvalidc\000g\377nature: \177(%s)Mis\277#\230\346\004\350\001\014\005{{\257\000\214`}\315}\005\nif\016\000\237`i-\266\301\207\002py\325\205\003s \352\"s\337tart \211\004ne\375w\346\207\001Need %\363i \231\002\322\206\001unpa\177ck (got\017\006\317)No \000\000p\002fo\347r}}\005\005l\001Non\347eNo\207\207\001\300\003var\237iable\206\210\002\301@r\366\332G}}\207\205\001Put \367the\361 viro\371n\236\205\001\343\210\001as to?p-leve\266\207\001?\003\377sUnexpec\322\341\206\001%\001\t\372E \t\nto\377ken ""Unkn\347own\322\206\002\370\205\001You\377 can onl\217y gi\357 \260\000\304fa\341l\240\206\006\027\017\352e\"\000*or\377* keyworR\321\206\007sU\004\301\206\001h\310A(\324\206\002\014\333\001\377\006se\220\207\003\353\210\001\213\"\321\205\001\373 (/\010use i\377nheritan\213ce\236Bo\243 \375a\346\212\001i?n get_\304\205\005\314\001\310\273\205\002\307\002\332\205\007 \240\213\001\375\212\001[\\\377n\\r?[\\t \377]*$\\s+in\376\002\000]^(?:if\317 |el\002\001\211\210\001|d\331e\r\000s\004 |\202\206\005|p\357y:)^9\003\\n^\277[a-z_]\002\0010\367-9_O\000cont\037inue \276\212\010\330\210\001\251\207\001\260N\001\312\206\005d\002\361\210\001if\327\005 }i\344\204\005yntax\333\214\001\374\263\214\007\311\206\001py:{{{\376\214\207\007x, y = \237...}}\367\212\001\252\211\001s\377upported\237|}}}C\243\210\014\206\212\004E\377NDMARKER\377EmptyFIL\277ENAMEI\001\001O\373PO\256\210\002Parse\033rS\310\215\002IO\357\210\001\245\210\001\000\005\267.__\241\207\001__\006\010r\367epr\005\tadd_\354\253\216\001\047\000fo/\007eva\335l\003\010xecK\007in\177terpret\000\020\351_\201\213\001\000\025s\035\021for\0064\021if\001\022\334c\327\007\313\001\346\006\237from_\271e\374\006s\377ubstitut\215e\230%DeT\006\010\000\243 cGall\234\047\016\003\252\204\001_\047\010p\274.5\003\302+I\003str?\014\236\311\213\001e_si\226\211\004\241EE\203rr\364\007\010\002\242N\016\005G\nO\200\223\212\002\347E\010\003\334N\016\006\345K6\003G\037etter4\013\016\003\262`\037getat\270\t(\tQ\024\3444\006\333c_\257\204\002\000\003.__\007boo\336 \006\006\352#\025\006\323\220\001s__$\0066\t.__\311\"\364A\006\305\217\004_\313\204\007BreaUk\332\204\006C\322\206\004_\310\021_\367\207\006o_obj\024\014__\365\223\001\363__\207b\252\006_bui_ltins\236\000_\261\004\237_clas\013\003\004\002g-e\335`em\036\001e\230\205\001\004\002\307xit/\001\360\224\001\003\002un\031c?\001\322b__\332&\006\002\324\215\001\340\\\001\272\211\004\005\003:\003\225$_ma\373in\177\001modul\361e\211\001\250\003\256\003__qu3al\004\005\374$_s\300E\275%\374\365\007/""\005traceb\177ack_hidR\002\330\327\047\216\207\n\300@dy\305@un\335dU\000lf_\236\207\001_e\367xec\356\205\001l_co\367mma\031\000usag\203e_\303\223\001\311#\005\002\360\204\006\364\001f\037rame_\274\207\006\000\007\267\207\002\272\000\014s\036\010for+\tfH7\n\365\213\002\345\222\004_\253@\343\205\014_\375\205\002?d_pos_\376\210\002\315\222\005\365_\226\224\004a\364\220\003dd_o\376\210\223\002appenda\377rg0argsa\367rgv\217\205\001base\277bodybo\200%b>\372abunch\000\002\262\205\t\000\006\010\333C\032\005\217\212\003(\005\214\212\0036\005\253F\375c\221\210\001erchun\327ksc\234\212\004_\247Fcl\341s\354\225\001\360\225\001\006\000%\000e_tgext\356\231\003\211Aen\n\000\377mpilecon\311d\354\214\001\r\002n \003\370\214\003co\377pycurren\035t\271\226\003def\232\226\004\230\226\r\257\226\006\207xpr\274\226\005\351\216\004\313\226\005\264\232\001s\371p\315`\335\226\004sdefsX\363\230\007\202\231\002\275\230\002de\372\227\001r\344\232\001\337eecol\312\216\001el\363se\365\226\003\222\227\005ende\352\352`b\236\204\001s\006\001pos\276\254\223\003endfo\262\000d\277ifends\357\231\001e\177numeratA\000\376\215\222\002erowesc\367ape\306\214\001exit\374\334\233\002\377\225\001_kwff_\377globalsfv\370\214\002no\357\217\005fil\303\204\006\207fin\254b\253\226\002\t\001\373\231\001f\177irstfor\337\213\n\340\364\213\002\237\227\005\277\231\001\367\204\006\361\204\013genz\240\002_\340\222\002sget\220\221\001\300\236\207\002\335\227\005\231\221\t\254\221\002\213\223\001\246\004gr\377ouphelpi\335i\370\000in_\261\235\001in\007_re\247\000\341\000\371\221\003\275\207\005\257\230\005_ioiso\274\230\001_\332\235\007\374\305\226\001\310\226\002joinkkOeykw\317\235\001\323\235\001_G\002\356\005\002pos\r\002tri\377mlead_wh\367ite\336B_rel\363ex\344\236\001\270\217\002offs\333et\363\236\001no\371\236\001sl\327ist\363\231\003l\347\236\001pm\377matchmes\376\233\207\001metavar\247msg\347\236\001\256fn\224`_\337count\005\002tyup\254 x\n\000xt_\202\205\002\337nsobj\216\230\003op{en\243\206\003sopt\332\215\002\037oso""ut\347\234\003\352\215\002\356\215\003p\272\206\001\370\215\003\203\205\001\202\216\003def\000\006p\211\234\001\230\216\003\376\237\001\242\216\003for\253\216\003<\312\224\004\270\216\003one_:\007\303\216\006\276\314\216\014.<loc\326`>\341.\265F\370\216\002N\001\244\001tsp\377aste_scr\353ip\206\225\007_\313\204\001ere~v\000thpiec\344 \337oppos\250\233\005pr\373ev\000\001_okpr\177intpyrb,\000\362\223@r\227@\355\241\001reas\377onresult\377returnss\377colsearcohsel\237@lf\220\213\001~\227\206\005igsig_\333\210\001\360\004\001\272\207\001\230\220\006\247\233\003_sta\373te\373\236\001sspli\377tsrowsta#ck\334\230\002\206\232\002\213\232\002_\236\206\003\006\003\307pos\024\003\206\241\0018\006_r\372\357\206\002n\302\234\003store\377_truestr2\320\241\004t\215 \247\222\001ub\263\207\001\253\222\007\007sys\374\235\002\376\235\005\260\212\006\314\210\004\300\212\006\374\263\243\001\315\212\006objtmp\037ltok_\345\243\003\006\001\316an\332\231\002_re\342\231\002iz\002\003?strail\321\204\013\361\204\001\317_lex\003\002\357\204\007tu\267ple\227\204\001un\235\204\006u\337pdate\365\214\002us\377e_envutf\3038v\363\243\002\370\243\002\244\206\002\304\243\003vaOrvar\362!\000\004_\344\204\001\032\014\004s\027\001kw\035\001\201\245\001%\001\326\364@ar\024\001s\277\214\001tw\367arn\000\001ings\373wb\252\237\002zipPy~\214\223\003 *(PyM\230\236\002\377Def *ml,\377 int flaogs, \037\005* \246\217\005\376\n\007 *closu\003re\007\t\347\217\003\031\t\260\211\004@\t\363\242\001\003)\000v\n\206\005\345\206\001\247\221\002\\\t\300\215\001\306\202\010 *\354\246\001}\t\211\021mk9w\212\014&\rdocZ)e\r\340\205\016\210\241\001\377\n~\001\311!cal\343cu\313\211\002\324\010\342!all\177ow_py2_\357\006\374\2014\342\rconst \307*im\216\233\003\204\224\002\253B_s\377size_t l\307en_\r\017\356E\2352od\000\275\003\375A\215\240\002\233G\243a\252e\212B\007\021K* \357M*\226\252\002\027\022*\242\251\004\300\341a\254\006\366\204\003\315\212\002\013\n\236\210\003_u\356\322\000gth\235\204\003kin\275d\302aType\304\204\006v{""oi\022\000int(\330\204\007\227kwd\261j \266$\263\205\001lkue\315j*\026\004ar\345\213\002\047s[]\345\204\tF\0012\366\204\t\346\252\003\034\037\003\361&num\261\223\002\203\223\001\321\n\354\025\001\312\252\002s,}\004cha\343r*\272\251\006\312\227\002\372\205\003ignj\355\210\001u\317\242\003_0\003)\000\273\033@kO\341c\223\020M;\301\200s\235it\306#\377__Pyx_Ca\337chedC\243\251\005* \037targe \000\312a\276h\347obj\217\211\001;\nypex\301I\224\210\005\300\211\001exac.\024\006\316\047 *\250\233\004\321\212\002\373D\023\t\203\204\004\303)\000~\014\351\220\001\372n\222\212\ttb\036\237\212\nause>\004\306M\355h\334\257\002\244\204\016min\002\017ax\254\314\204\016\267\254\002)\000\317$y\364\253\005_\367New\016\004Py3M\367eta\212\235\002Prep\327are\020\007C\241\235\001Cr7eat\r\005_I\334\210\0025\005\277EP560_\267\215\003_x\221\213\002e\004!\003From_\006}U\275\257\003_Join\213\004\037Get_C\214\007\265\207\001\217\005\232\222\245\001K\341\250\003sT\255\216\001\006\020D\037ictTo\002\001\006\024\333\006~\217\210\001_Ready\205$oTryU\336\253\002Un\204\233\0029C\355\215\003\243$Arg\301\210\001\327\242\002J\237&B\300\237\003_\241\255\004\316$R\355\257\001\360\000\t9\000\334\217\002\310\255\004\200\001\330\004\377\007\200t\210:\220Q\220\377c\230\021\330\010\013\2107\377\220!\2203\220a\330\014\335\023\003\001\220q\340\006\0005\230\275\001\032\000\004\013\2101-\001\013\377\2102\210U\220%\220q\377\230\002\230%\230x\240q\177\250\r\260X\270Q\330\035\000\377=\230\n\240.\260\001\330\377\010\016\210j\230\r\240Q\377\330\010\025\220]\240!\200\377\013\210;\320\026,\250O\377\320;O\310q\360,\000\373\005\031&\000!\2406\250\033\377\260G\270:\300X\320M\377_\320_`\320`a\330\377\004\026\220j\240\001\240\026\377\240{\260\047\270\032\3008\377\320K]\320]^\320^\337_\340\004\016\210\034\000\r\210\376d\0021\330\004\020\220\014\230\377B\230c\240\021\340\004\017\377\210r\220\030\230\021\230,\277\240b\250\007\250q~\000&\275(\002\004\004\010\210\t\031\000\031\377\240!\2401\330\010\024\220\277E\230\026\230q\240\235""\002m\377\2301\230C\230u\240D\277\250\004\250F\260!\371\0015\377\220\003\2201\330\014\017\210\377q\330\020\026\220m\2401\377\240B\240a\320\047I\310\377\031\320RW\320W\\\320\373\\]\225!1\220A\220U\362\371\000v\337\000%\005g\230Q\230^\263 \026\220a\340=\000tD\000\3766\tH\310\t\320QV\320\377V[\320[\\\330\014\022\357\220\047\230\022{\000A\230U\277\240%\240v\250U{\000\014\3767\000\330\010\017\210u\220D%\230\276 \023\205\000\230@q\307!\246\000\377\330\014\021\220\021\320\022:\177\270%\270v\300Y\310\245 \266\212@\210A\211!\007\200 \002g\370\300@\274 \t\002\020\220\001\220\021\376\214A1\200\r\210[\230\017\377\240q\360d\001\000\005\016\353\210S\026\000\023\377\002|\250=g\270\013\300\304 \314\"\n\210\374\000_\024\220I\230Z\313@\010\273C\274J\004\361AA\330\010\t\215a4^\361@\001\330\017\020\276\001.\243@\343\021\200\027\000\223`\251&i\230qW\330\024\025\275!s\304`6\341\001\374\305!\r\007t\2207\230!\230\3354\200@\004\240A\020\010\027\033T\213!\342\001\024\303\002\010\344A\010\224\000\177\320\013\"\240$\240a\226\204\001\3354\223@\014\016\210\345\001d\230\356\254@\020\220\006\251`\004\240Kn\355B\010\013\210\034\002\026\220\030\002\376\221\002\025\220T\320\031,\250\377A\250X\260V\2709\300\270\304\000\327@\256\003:\220S\344 \014\377\r\330\020\027\220t\230<\377\240q\250\006\250a\330\023\271\024\003\n\370\204\0014\220|\204`F\353\250!\350\001\014\360 X\220Q\376\005\003F\220)\2302\230V\372\325`\014\253@\220F\230&\240\355\001\037\003J\220\256\000\014\210G\277\320\023\047\240q\250\017\003\320\357\014\036\230a\254!\016\210c\257\220\025\220as\0001\315\006\022[\320\022\244\000\330\020\256\000\230\247\204\001\3774\240t\2509\260A\260\375Q\357\006\023\2209\230B\230\327d\240!\240aqC\002\320\016\367(\250\001\225a\023\220A\220\277T\230\023\230A\230$\t>?\240\022\2404\240q\047\006\364\004\236\330\204\001\014\020\220\n\277 \344\204\001\220\375\002\244B\021\230%\230t\240\3531\200\235#\330\027\007u\220A\377\220Q\220k\240\023\240C\376\221\0003\250e\2606\270\021\277\270$\270f\300A\"\010\r\357\230T\240""\0210\003\047\240\024\275\240\234\"\017\210t\220J\004t\327\2201\220(\004w\366\001\320\033\371,\356\205\001h\003}\230D\240\n\337\250+\260T\270\312b\017\320\373\017#\265\000z\260\033\270D\375\300\313\"\021\220\021\330\010\022\357\220*\230H\350@t\2601;\330\010\231\205\001\010\014\210\366(i\001\3777\230$\230e\2407\250}!\352f-\250R\250q\313\206\001\257u\220C\220\316\206\002a\312A\340\277\020\030\230\001\230\030\257\000\010\246\240\002\220AO\001\327\204\003\010\342\207\001\014u\022\330@4\326\210\002\003\2503\225`r.\000\004\332\"\225\207\003\027\220x\252!b\274\204\003a\010\002\347 \212@\021\022\264\207\001\376a\0015\250\001\250\021\330\020_\021\340\020\026\220\217\205\004\024\227\204\001y%\372\207\001\237!\240c\250\024\364\206\002\256\304\002.\240\010\374b\014\375\206\001Gs\2301A\003b\001:\250V\360\000\377\024 \240\004\240F\250$\305\250\324bH\257\000\036\t\362\205\002+\250\3532\250\253b1\335\207\001!\220:\374\212a\351\204\004\021\220\024\320\025&\357\240a\240v\037\001\r\210T\357\220\024\220U\300\205\001\n\210\047\367\220\021\220\367\210\0024\210}\230\375G\311\204\001\016\210a\210z\230\261\024\311a\357\211\001\370 !\330\353 J\373\320\026\312\204\001\004\250H\260D/\270\005\270Q\251\210\001r\305\204\002\212\204\002m\035\371a\t\330\316\205\001\030\230\251!\377V\2404\320\047;\2701\326\306\213\001?\240\220Bk\242`\0247\317\260r\270\021\301\211\002\353\210\001}\230\271A\354\211\001\223as\230(#\001\027\357\220q\230\005\311\211\001\340\020\027\373\220{\263\212\002\014\r\210Y\220\377d\230/\250\021\250&\260q\001a\000\364\207\001i\005\017\210v\307\206\002\365\0206\000\330\363\211\005\021\330\024\034\333\230C\345\212\002\027\030\010\001E\240\377\021\240!\340\020\023\2204[\220z\010\000\047\250\035\002K\233\206\001\377\330\020\024\220J\230a\230\377w\240a\330\030\034\230D\253\240\001+\003\027\300@\024\317!\017\371\210\241\002{\007!\2505\260\001\317\260\024\260Q\354\000\350\212\003:\230\377T\240\032\2501\250G\260\364\270@a\001t\301@\024\032\320\032\336\323\206\001\030\031\3309\205!\020\021>""K\013\020\027\320\027-\261@\036\007\237\230\021\330\030\031\000\002\000\007\230\377\030\240\022\320#3\2602\257\260Q\330\021\235\207\001\032\232\205\002\021\253\260\047\304 \020S\026\030\302 W\037\240A\240T\250\347#\247)\234\213\001\377\026\220t\320\033/\250q\376\372(q\220\001\330\020\021\220\377\031\230$\230o\250Q\250_a\250u\260A\223\206\001\340\n\010\307f\260A\364)\361\211\001\350\214\001\014\022\337\220-\230q\330\337\000\020\031\373\230\026\320\215\002\001\330\010\020\220\377\004\220M\240\021\320\"4\2243\000\013\000\016\343 t\204\216\001\266\206\0034\271\230\274\215\002\271\211\001G\2306\213\206\001\r\377\210X\220Q\330\010\r\210wR\210u\222\206\001\n\210!\230\220\0012\222\215\003K\265\216\001\361F\014\210\377\204\004\344\213\003\275\023\305`\020\022\220!\335@q\357\230\006\230a\347A3\220a\377\220v\230S\240\003\2401\377\240A\330\024\032\230*\240}A\335 \330\030\033\2303\353B\365c\316`!\373AF\230)\240]3\230\205\004\024\026\220\317\206\001q\306\204\002\377\024\320\024%\240Q\240i\277\250t\2605\270\001\233\213\002\021\\\000\003w\017z\230\021\377\212\001\330\342`\256\341\214\0011\340\020;\000$\200@Vs\2504\307!\254\204\006\016\210f\341\216\001\213\230\024\262\211\001\240\355\217\t\317\214\001\225\213\002\230{D\240\235\215\001\r\022\220#\216 \377\014\022\320\022#\2401\330\336\006\006\220.\240\001\003\010&\230\355\n\241\215\001\240tf\000q\260\004\257\260D\270\001\335\205\0034\375\000Q\357\230f\240D\245\213\001\020\220\017\377\230q\240\006\240f\250I\277\260T\270\025\270aG\006\024\370\212\002\274\212\002\237Aw\240d\250%k\250q\020\014\022\237A\240!\202\217\003\177v\230Q\230e\2401\267\221\002\305A\253\213\001\010\256\206\003\311\215\003\311@\240&\257\250\004\250A\330\215\0031\332\206\007tv@\002&\250\264\007\021\220\027\252\207\002\365T\220\211\002a\274\206\0037\230!\330\002\306`\024\332\215\001\360\210\004\330B\024\001\214%\307\206\001\301q\300\216\001\272\001\357@\312`\347\204\002\020\220\177\001\320\021\"\240!\330\030\016N\222\210\003Q\330\014\347\006\347\210\001x\206\216\001""\376\327\213\002q\260\006\260f\270K\377\300u\310G\320SV\320OVW\3300\265\204\001\375%\r\207\225\001\3773\320\026)\250\022\2501\306\373\207\004\340\010\201\204\004\321\207\005\327\001\014\022\363\220&\304\r\373\213\004\031\230\021\340:\320\006D\334\207\002T\260\021\353\223\004\346d\247d\250!\256`\353c\020\337\221\001 \272\373\211\002M\234\226\001\014\210N\367\220\001\014_\320\014\037\230q\222\212\001I\254\205\001\277\014\210G\2201\330\204\004\010\357\014\210O\230\306\216\001%5\260\377Q\330\0269\270\021\330\r\177\021\220\021\220*\230I\253\224\001\242\230\223\001\025\234\220\001\263\222\002\246\223\001\027\331\226\002\010\373\017\210\260\222\0018\2303\230e\377\240:\250Z\260q\330\023\377#\320#4\260M\300\021\343\200N\354b\201\223\001\222\225\0016\250\030\377\260\026\260w\270g\300T\357\310\021\310!\214\223\002\023\2208\370\302\221\001\276\227\001\355\212\002:\230]\250&\277\260\010\270\006\270a\276\227\001:\337\230Q\320\000\021\217\224\0032\210\275T\357\213\002\004\021\220\022\253\206\001\320\377\030)\250\035\260c\270\030\375\300\257\224\0028\2201\220I\230}U\276`\013\260<\270{]\000}\004\327\222\001{\230!\2301>\003\347\013\014\330\000\000\003\000\004\007\200\257u\210C\210\337\220\002s\215\230\002\001\313\330\004\300\207\001]\244\221\001\253\227\002\n\210q+\316\207\001\304\214\002\317\223\002\020\220\001\335\207\001WQ\330\004\024\004\t\t\003\010\361\226\001\374\362\223\002?\000W\220F\230+\240\373Q\240\314\225\002s\210!\2106*\250\00013\002\210\207\224\0025\334\225\003\261\205\005\260\235\002\273\211\001\240\231\001\317\231\001w\210\374\222\003\220?1\220B\220a\330\201\230\002\332\231\002\3474\210w\331\231\001\311\226\002%\240Ru\240\230\220\004A\237\003h\220e\341\205\002q%\264\222\001\355\006\365\225\003r\230\021\260\204\007\251\010\203\224\004\273\232\001~\306\224\002\010\321\210\001f\377\240E\250\021\330\010\030\230\373\001\340\357B/\240\031\250!\375\330\250a\240\005\240Q\330\004\377\017\210x\220q\320\030*\304\332\206\002\245\"[\303\226\001\252\005\243b\047\230\377\031\240)""\2501\330\014\r\253\210V\264\222\001\340\220\233\002&\377\232\001\320\377\000\025\220Q\360\032\000\005w\021\220\001\320\001\003\210;\331\220\001\372\313\231\001\013\277\233\002i\230q\340\014\351\r\303\230\001\344\222\001q\260\226\003|\2307\301\240\350\232\001\353\220\001\260\214\001\035\001\246\226\004\023\220\3751\334\233\0016\230\021\230\"\230\373B\230\342\226\0022\210R\210r\243\220\023\256\222\001\236\226\001\256\205\001\014\320\213\001q\277\240\002\240\"\240A\207\220\001D\344\273\224\001\352b\020\353\205\nw\000\022\220$~\301 3\320\0361\260\027\201\211\002\335\010\253\234\001S\220\002\025\000d\230?$\230f\240A\330\345\231\003\256\001\377W\230E\240\024\240Z\250\377r\260\022\2603\260b\270\377\004\270D\300\004\300F\310\335!\035\004\014\210A\216\230\003[\240\377\003\320#5\260W\270A\375\270\201\216\002R\220s\230#\230\377Q\230h\240b\250\002\250\377$\250d\260*\270F\300\255!\264\233\004\025\220\034\001\"\300\212\002D\236\324\227\002\030\033\2308\336\213\001\202\214\001!\377\2302\230R\230u\240A\377\340\024\030\320\030+\2507\377\260!\2601\340\024\033\230\3774\230r\240\021\240&\250\235\003\305\222\002\024\032\230!\006\214\234\004\034\376\341\214\001\023\2202\220S\230\003\377\2301\230H\240B\240b\377\250\004\250D\260\n\270&\373\300\001J\017*\250\047\260\021\337\260!\330\024!\230\220\002A\250\374\350\207\001L\t\320\000\026\320\026.\377\250a\340\004\013\2106\220\205\026\332\232\002\004\361D\250c\362a\364\235\003\013?\2105\220\013\2301\301\207\002\364\205\002\335I\244\232\003\020\220\005\307\231\002\004\014\377\210E\220\021\220#\220VG\2301\330\010\002\323\207\003\334\237\0021\277\234\006\327&\240b\262\230\001\025\274\235\002q\330u\004\005\001\"\204@\026\240q\206\240\003\3553\336\205\001\016\210\360\234\002H\310\001\377\320IY\320Yb\320b\177g\320gl\320lm\342\237\001\374\370\205\002\333\233\002\023\230D\240\005\240\377Y\250f\260A\260U\270\247#\270Q\224\230\001\033\005\025\205\233\002\004\211\005\334\231\007\231\220\010\025\273\214\001\322\224\002\240\217\002Q\336\326\231\002\020""\024\220F\360\"Q\230\247c\240\023\246a\226\220\0035\261\215\002J\353\260f\372B\010\237\235\007\006\260al\344\204\006\300)8\220\317\204\001!\330\302\047r\266%A\225#\347!\006\230b\365\205\005Su\210\275-\222\242\0017\225\226\001\024\232\230\001\372\310\231\0016\266\240\001\330\t\r\210U\353\220)\250\235\002\010\240\"\320\034I\377\310\022\3101\330\034%\240\177W\250E\260\021\340\010\211E\377\010\023\220;\230e\2406\373\250\021\311\216\002\010\016\210o\230\367Q\230j\344\234\002\004\016\210h\210\355\242\002\320\241\003\2163\027\260\207\002\367\226\001\201\201 7/\240+\250U\200\205\003\300\345\241\002\305\237\005~\226+\027\220|\240?\260\227 ?\007\200z\220\021\220\323\207\001\345\227\002\316\302\226\001Q\220d\300\235\001\316\242\001\n\210?&\220\006\220a\220\236`\324\236\001\227v\220Q\243\244\003;\017\002\260\232\004C\237\220w\230a\230\337\207\004\234\213\0016\377\240\023\240D\250\013\2601\300\241\224\001\347\226\001\032\003\320\231\002\374\232\002\350\236\0018\240\2271\240H\223\220\0058\326\236\003\217\217\001A1\340\036\007\367\242\002\306\240\001\024\035\236\242\002\300\235\003\377\220\006\220e\2307\240&~\326\232\002\t\016\210d\220,\255\210\003\3276\220\027\311\237\001\022\316o\017\210\177q\220\006\220f\230F\373\243\002\322\272@[\345\215\005\252\223\001(H\001\330\n\377\016\210k\230\021\230!\330\245\n\330A#\251\214\003\357\242\002(\327\207\002f\377\260B\260a\260q\330\014\334\254\205\005v\002&\230\010\276\244\006\330\0149$\245\244\001\023\014)\230:\376\245\001\304\205\004\341\034\333\211\002:\007\225\243\001\322\246\001\010\017\210\361y\211\235\002\375\205\001\225\t}\230A\230\277X\240V\2501\330\000\023\t\336!\036q\220\013\230\267\205\001a\240\275r\377bv\260Q\260\263\244\004H\276\202\246\004\002\240!\2405\367\241\001\250\277q\320\000\027\320\027\215\230\001\004\016\326\236\001!\2202\313\244\003\354\246\002\245\204\006\350\203>\377H\230G\2402\240U\250\377!\2509\260F\270!\270>\244\204\004^\2501\250H\r\001\267\250\001\376\306\245\002\320\000\032\320\0322\260\341!\216\211\n\273\206""\010\213\211\001\236\204\001v\230R\374\314\247\002\232\251\001\210K\220u\230G\302\355\205\002! \035\252\211\001\371\206\n\t\005\005\230\214\347\204\002\362\217\0017\220\202i\342\206\003\375F\004N\250\247\001A\220R\337\226\001\250\211\017\r\245g\340\335\252\002\236\204\002\336\252\001\323\211\004\035\000\016\210e?\2209\230E\240\025\343\220\001\332\212\001\327\001\220\022\264\210\001\330\302\006E\240\375\027\224E\032\320\032?\270q\371\340\227B\210\217\001\026\230|\2501\356\271\253\001v\210R\375\221\001\021\220\026\357\220r\230\026\316\232\001\240f\250\277L\270\001\340\010\021\217\252\002#\257\230S\240\006\357\212\002\004\256\232\002\220\377S\230\002\230\047\240\021\320\377\000\033\320\0333\2601\340\371\005\303\242\003\260\227\001$\240f\250AG\250Q\330\345\252\003\331\222\001\205\211\017u\342 \352\363\226\001\010\373\246\001e\335`\001\240\023\333\240G\365\230\001\330\t\301\205\005\010\020\375\220\214\230\001U\240!\2403\240\325g\361\214\002\t\332\224\002\330\023\004V\240[1\340\355\224\001\320\022\242\217\002\330\371\212)\271\014\347\001\370\254\001!\2303\373\253\001\330\375\021\254\213\007b\240\013\2501\250IA\007\t\300\213\0066\334\255\001\243\213\025\036\255\220\001\355\021\270\224\002\320\025\356\233\001h\250ao\250y\270\001\257\222\001q\330\360\254\010\353\017\210\202@\022\374\232\001\360\022\000\377\005\006\330\010\027\220q\360\377\006\000\t\023\220-\230y\373\250\001\276\256\0019\220C\220x\335\230\273\234\002\010\013\210\010\003t\240\3775\250\013\2603\260d\270\377#\270[\310\003\3101\330\357\014\033\2301\206\221\001m\2409\363\250A*\n\306\236\002\320 :\270\377\"\270A\330 )\250\025\353\250e\354\245\006\022W\r{\250$\377\250i\260s\270(\300$\377\300d\310+\320UX\320\353XY\276\255\001}\373\241\001\330\020\032_\230!\330\021\036\243\"\020\370\230\002\327\030\230\007\374\255\002\014\364\207\001\003\230\2478\2401\262\237\001\216\223\003=\030\001\330\371\014j\024\302\0074\240{\260#\322\372\241\001\030\300\252\001_\001\014\262\241\001\014\030\270\322\257\001\307\212\002\203\244""\002\032\230,\341\245\002Y~\272\211\002\020\023\220:\230S\331\242\001\327 \240\001\223\003\020\322\251\001C\230\177x\240{\260$\260a\236\237\001\377-\240q\320(B\300\"\377\300A\330(1\260\025\260\367e\2701\233\243\001D\230\013\240\3771\330\031\"\240#\240X\377\250[\270\004\270I\300S\177\310\010\320PT\320T\355\000\377c\320cf\320fg\330\373\024#\240\223\001Q\260j\300\013\273\3101\375\243\001A\230\\\342\243\003G\372\374\237\003\025\336\252\001W\230B\230j\373\250\001\243\237\001;\230d\240)\357\2503\250h\225@$\270k\277\310\023\310A\330\024\267\234\001\025\276\353\246\001I\250S\260\010\216\224\002\013\257\3103\310a\024\003\024\253\254\0011\377\330\030$\240N\260!\330\377\025\031\230\033\240D\250\t\357\260\023\260H\266\224\002K\310t\263\320S\200@\261\261\001\330\024\345\001\024\375!\361\245\001#\2405\250\005\250\237U\260%\260u\323\251\001\344\231\003:\377\220Y\230h\240a\320\000\227\037\320\037\245\246\001\004\211\247\002\270\222\001A\211\330\000\t\214\212\002+\333\260\002\346\231\t\227\253\001U\363\230!\377\205\001/\002\210U\220!}\220\244\263\004\t\210\027\220\001\337\254\005\334\325\226\002\247\232\002B\210c\353\247\001\340\010\347\r\210W\277\261\002:\001\002\240!\374\270\263\001\321\263\001!\2201\320\0002f\233\217\001\013\210\200\233\005\030\0024\210\372\232\003\271\004\262\204\001\346\256\002s\220!\274\247\006t\272\350\250\002\014\216\263\001D\240\r\341\224\002\014\376\377\206\001\004\230F\240$\240g.\257@\001\320\004\362A\010\241\250\002\376\232\002\276\352\232\002\014\320\014\035\230\370\222\001*\377\250D\260\004\260G\2705E\300\276\205\002>\312\255\001\244\227\001\257\227\001a\321\230\001\344\227\262\004\353\250\003x\265\244\001N\001\013\320+\376\336\250\001\021$\320$:\270!\315\330\362\237\002\010\014\236\210\001\220\206\001\014\210\2451\316\257\001\014\362\263\001\206\253\003\021\230\263\001{v\266\227\001\330\020\254\251\002\013\210;\364\265\002\377\014\032\230$\320\0360\260\277\001\260\021\330\032\036\003\004\360\377\010\000\r\021\320\020%\240\377T\250\032\3203E\300U~\224""\230\001\020\320\020\"\240!\211\230\001\177Z\270q\300\001\330\014\t\005\2773\260:\270Q\270\364\257\002N\277\230$\230n\250A\231\240\001L\370\344\265\002\334\206\004\333\264\0015\230\004\230K\357\240w\250a\246\252\002\031\230\023\377\230J\240a\240q\330\023?\024\360\006\000\021\033\274\244\003\353\231\002j\234\204\003c\260\252\001\033\276\232\0021\330\371b\3779\240A\240X\250S\260\367\004\260Il\002\030\037\230t6\327\230\002\025 \347\245\001\330\024\047\004\317\230\001\304\211\251\002\207\205\002F\265\232\005\271\254\001\237\"u\230\377A\230Y\240e\2506\260\367\034\270]\267\207\001Y\320YZ\270\377\267\001\225\262\004\331\206\001\010\014\210\362\240\003\320=\014\371\230\001\010\013\320\013\207\002\362\002\377#\2401\320\004*\250!\353\330\010\261\250\001!\275\247\003\014\210L\000\274\265\001\232\247\002";
    PyObject *data = __Pyx_DecompressString_LZSS(cstring, 9324, 14398);
    #define __Pyx_DecompressString_UNUSED
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (14398 bytes) */
static const char bytes[] = "\n\r\r\n  \t around  at  at line  column  in %s in file %s in string %r inside expression name= outside expression to finish last expression#%prog [OPTIONS] TEMPLATE arg=value\n\nUse py:arg=value to set a Python value; otherwise all values are\nstrings.\n%s outside of an if block%s with no expression\047delimeters\047 kwarg is being deprecated in favor of correctly spelled \047delimiters\047. Please adjust your code.()) at ***,, ---env--output-o.pyc.pyo::%s<<stdin><string><tempita function =>?Bad argument: %rBad for (no \"in\") in %rCannot decode bytes value %r into unicode (no default_encoding provided)Cannot encode unicode value %r into bytes (no default_encoding provided)Cython.Tempita._looperCython/Tempita/_tempita.pyException raised while parsing a template\n    Expression must be {{default var=value}}; no = found in %rExtra position arguments: %sFile to write output to (default stdout)Function definition doesn\047t end with ): %sIf you pass in a single argument, you must pass in a dictionary-like object (with a .items() method); you gave Invalid signature: (%s)Missing argument: %sMissing {{enddef}}Missing {{endif}}Multi-line py blocks must start with a newlineNeed %i items to unpack (got %i items)No No {{endfor}}No {{endif}}NoneNot a valid variable name for {{default}}: %rPut the environment in as top-level variablesUnexpected %sUnexpected argument %sUnexpected token Unknown code: %rYou can only give one positional argumentYou can only give positional *or* keyword argumentsYou cannot have () in the variable section of a for loop (You cannot use inheritance without passing in get_templateYou must give a template filename[\\n\\r?[\\t ]*$\\s+in\\s+]^(?:if |elif |for |def |inherit |default |py:)^[\\t ]*\\n^[a-z_][a-z0-9_]*$continue outside of for loopdef default elif for if inherit invalid syntax in expression: %spy:{{{{{default x, y = ...}} is not supported|}}}Cython.Tempita._tempitaENDMARKEREmptyFILENAMEINAMEOPOptionParserStringIOTemplateTemplate.__init__Templat""e.__repr__Template._add_line_infoTemplate._evalTemplate._execTemplate._interpretTemplate._interpret_codeTemplate._interpret_codesTemplate._interpret_forTemplate._interpret_ifTemplate._interpret_inheritTemplate._reprTemplate.from_filenameTemplate.substituteTemplateDefTemplateDef.__call__TemplateDef.__get__TemplateDef.__init__TemplateDef.__repr__TemplateDef.__str__TemplateDef._parse_signatureTemplateErrorTemplateError.__init__TemplateError.__str__TemplateObjectTemplateObject.__init__TemplateObject.__repr__TemplateObjectGetterTemplateObjectGetter.__getattr__TemplateObjectGetter.__init__TemplateObjectGetter.__repr___Empty_Empty.__bool___Empty.__call___Empty.__iter___Empty.__repr___Empty.__str___Empty.__unicode___TemplateBreak_TemplateContinue_TemplateObjectGetter__template_obj_TemplateObject__name__all____bool____builtins____call____class____class_getitem____enter____exit____file____func____get____getattr____getitem____inherit____init____iter____main____module____name__name____qualname____repr____setattr____str____template_name____traceback_hide____unicode___add_line_info_body_bound_self_eval_exec_fill_command_usage_func_name_func_signature_getframe_interpret_interpret_code_interpret_codes_interpret_for_interpret_if_interpret_inherit_looper_ns_parse_signature_parsed_pos_repr_template_unicodeactionadd_optionappendarg0argsargvattrbasebodybound_selfbreakbunchbunch.__getattr__bunch.__getitem__bunch.__init__bunch.__repr__bunch.__setattr__ccallerchunkscline_in_tracebackclscodecodescoerce_textcolumncommentcompilecondcontentcontextcontinuecopycurrentdecodedefdefaultdefault_encodingdefault_exprdefault_inheritdefault_namespacedefaultsdefsdelimetersdelimitersdestdirnameeecolelifelseencodeencodingendend_bracesend_posenddefendforendifendswithenumerateenvironerowescapeevalexitexprextra_kwff_globalsf_linenofilenamefill_commandfind_positionfinditerfirstforfrom_filenamefrom_templatefuncfunc_namefunc_signaturegenerate_tokensgetget_file_templateget_templateget_tokenglobalsgrouphelpiidifin""_exprin_reindexinheritinherit_templateioisolate_expressionitemitemsjoinkkeykwlastlast_indexlast_poslast_trimlead_whitespace_relexlineline_offsetlinenolineslistlooperlstripmmatchmessagemetavarmsgnamenamespacenest_countnest_typenextnext_chunknsobjobjectopenoptionsoptparseosoutoutputparseparse_argsparse_condparse_defparse_defaultparse_exprparse_forparse_inheritparse_one_condparse_signatureparse_signature.<locals>.get_tokenparserpartpartspaste_script_template_rendererpathpiecespoppospositionprevprev_okprintpyrbrereadreadlinereasonresultreturnsscolsearchselfself_setdefaultsigsig_argssig_textsignaturesingle_statementssplitsrowstacklevelstartstart_bracesstart_posstartswithstatement_restdinstdoutstore_truestrstringstripsubsubdefssubstitutesystempltemplatetemplate_contenttemplate_nametemplate_objtmpltok_stringtok_typetoken_retokenizetokenstrail_whitespace_retrim_lextrim_whitespacetupletypeunnest_typeupdateusageuse_envutf8vvaluevalue_exprvaluesvarvar_argvar_arg_typevar_argsvar_kwvar_namevar_revarsvars_partwarnwarningswbwritezipPyObject *(PyMethodDef *ml, int flags, PyObject* qualname, PyObject *closure, PyObject *module, PyObject *globals, PyObject* code)\000PyObject *(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc)\000PyObject *(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass)\000PyObject *(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level)\000PyObject*(PyObject *bases)\000PyObject*(PyObject* module, PyObject* name)\000PyObject*(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength, int kind)\000PyTypeObject *(void)\000int(PyObject *kwds, PyObject * const *kwvalues, PyObject ** const argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, Py_ssize_t num_kwargs, const char* function_name, int ignore_unknown_""kwargs)\000int(PyObject *kwds, PyObject ** const argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name)\000int(PyObject *kwds, PyObject ** const argnames[], PyObject *values[], Py_ssize_t num_pos_args, Py_ssize_t num_kwargs, const char* function_name, int ignore_unknown_kwargs)\000int(PyTypeObject *t)\000int(__Pyx_CachedCFunction* target)\000void(PyObject *obj, PyTypeObject *type, const char *name, int exact)\000void(PyObject *obj, const char *builtin_type_name, const char *argname)\000void(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause)\000void(const char* func_name, int exact, Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found)\000__Pyx_CyFunction_New\000__Pyx_Py3MetaclassPrepare\000__Pyx_Py3ClassCreate\000__Pyx__Import\000__Pyx_PEP560_update_bases\000__Pyx_ImportFrom\000__Pyx_PyUnicode_Join\000__Pyx_Get_CyFunction_Type\000__Pyx_ParseKeywordsTuple\000__Pyx_ParseKeywordDictToDict\000__Pyx_ParseKeywordDict\000__Pyx_PyType_Ready\000__Pyx_TryUnpackUnboundCMethod\000__Pyx_ArgTypeError\000__Pyx_PyBuiltin_Invalid\000__Pyx_Raise\000__Pyx_RaiseArgtupleInvalid\200\001\330\004\007\200t\210:\220Q\220c\230\021\330\010\013\2107\220!\2203\220a\330\014\023\2203\220a\220q\340\014\023\2205\230\001\230\021\330\004\013\2101\200\001\330\004\013\2102\210U\220%\220q\230\002\230%\230x\240q\250\r\260X\270Q\330\004\013\210=\230\n\240.\260\001\330\010\016\210j\230\r\240Q\330\010\025\220]\240!\200\013\210;\320\026,\250O\320;O\310q\360,\000\005\031\230\n\240!\2406\250\033\260G\270:\300X\320M_\320_`\320`a\330\004\026\220j\240\001\240\026\240{\260\047\270\032\3008\320K]\320]^\320^_\340\004\016\210a\330\004\r\210Q\330\004\013\2101\330\004\020\220\014\230B\230c\240\021\340\004\017\210r\220\030\230\021\230,\240b\250\007\250q\260\001\330&(\250\007\250q\260\001\330\004\010\210\t\220\030\230\031\240!\2401\330\010\024\220E\230\026\230q\240\001\330\010\016\210m\2301\230C\230u\240D\250\004\250F\260!\330\010\013\2105\220\003\2201""\330\014\017\210q\330\020\026\220m\2401\240B\240a\320\047I\310\031\320RW\320W\\\320\\]\330\014\023\2201\220A\220U\230%\230v\240Q\330\014\017\210q\330\020\026\220g\230Q\230a\330\014\026\220a\340\014\017\210t\2201\330\020\026\220m\2401\240B\240a\320\047H\310\t\320QV\320V[\320[\\\330\014\022\220\047\230\022\2301\230A\230U\240%\240v\250U\260!\330\014\026\220a\330\010\017\210u\220D\230\001\330\010\023\2201\330\004\007\200q\330\010\016\210m\2301\330\014\021\220\021\320\022:\270%\270v\300Y\310a\330\004\013\2101\210A\210Q\330\004\007\200q\330\010\016\210g\220Q\220a\330\004\007\200q\330\010\020\220\001\220\021\330\004\013\2101\200\r\210[\230\017\240q\360d\001\000\005\016\210S\220\001\220\023\220E\230\026\230|\250=\270\013\3001\330\004\r\210Q\330\004\n\210!\330\010\024\220I\230Z\240q\250\010\260\001\330\010\016\210g\220Q\220a\330\004\013\2101\200A\330\010\t\330\014\023\2204\220q\230\001\330\017\020\330\014\022\220.\240\001\240\021\200A\330\010\013\2101\330\014\017\210q\330\020\026\220i\230q\330\024\025\330\014\017\210s\220!\2206\230\022\2301\330\020\026\220i\230q\330\024\025\330\014\017\210t\2207\230!\2304\230q\240\004\240A\330\020\026\220i\230q\330\024\025\330\027\033\2301\230A\330\014\021\220\024\220Q\220a\330\010\r\210Q\330\010\n\210!\320\013\"\240$\240a\330\010\013\2104\210q\330\014\016\210g\220Q\220d\230!\330\010\020\220\006\220j\240\004\240K\250q\260\001\330\010\013\2104\210q\330\014\026\220d\230!\330\010\013\2101\330\014\025\220T\320\031,\250A\250X\260V\2709\300A\330\010\017\210q\200A\330\010\013\210:\220S\230\001\330\014\r\330\020\027\220t\230<\240q\250\006\250a\330\023\024\330\020\027\220t\230<\240q\250\006\250a\340\014\023\2204\220|\2401\240F\250!\200A\330\010\014\210A\210X\220Q\200A\330\010\014\210F\220)\2302\230V\2401\330\014\023\2201\220F\230&\240\001\200A\330\010\014\210J\220a\330\010\014\210G\320\023\047\240q\250\001\200A\330\010\014\320\014\036\230a\200A\330\010\016\210c\220\025\220a\220t\2301\330\010\013\2104\210q\330\014\022\320\022,\250A\330\020\025\220T""\230\031\240!\2404\240t\2509\260A\260Q\330\010\013\2104\210q\330\014\023\2209\230B\230d\240!\330\010\017\210q\200A\330\010\016\320\016(\250\001\330\014\021\220\023\220A\220T\230\023\230A\230Q\330\010\013\2104\210q\330\014\023\220>\240\022\2404\240q\330\010\017\210q\200A\330\010\017\210q\200A\330\010\017\210q\330\014\020\220\n\230!\330\014\017\210q\220\002\220!\2206\230\021\230%\230t\2401\200A\330\010\017\210q\330\014\020\220\n\230!\330\014\017\210u\220A\220Q\220k\240\023\240C\240t\2503\250e\2606\270\021\270$\270f\300A\200A\330\010\017\210q\330\014\020\220\r\230T\240\021\330\014\020\220\n\230\047\240\024\240Q\200A\330\010\017\210t\2201\200A\330\010\017\210t\2201\220A\200A\330\010\017\210w\220a\220t\320\033,\250F\260!\200A\330\010\017\210}\230D\240\n\250+\260T\270\021\200A\330\010\017\320\017#\2404\240z\260\033\270D\300\001\200A\330\010\021\220\021\330\010\022\220*\230H\240K\250t\2601\330\010\023\2201\330\010\014\210F\220)\2302\230V\2401\330\014\017\210t\2207\230$\230e\2407\250!\330\020\026\220i\230q\330\024-\250R\250q\330\014\017\210u\220C\220q\330\020\026\220a\220|\2401\340\020\030\230\001\230\030\240\021\330\010\017\210t\2201\220A\330\010\023\2204\220q\230\001\330\010\016\210a\330\014\022\220)\2304\230x\240q\250\003\2503\250a\330\020\030\230\004\230A\230Q\330\014\017\210q\330\020\027\220x\230t\2401\240A\330\020\026\220a\220x\230t\2404\240q\250\001\330\021\022\330\020\026\220a\220|\2405\250\001\250\021\330\020\021\340\020\026\220i\230q\330\024\025\330\024\026\220d\230%\230q\240\001\240\024\240Q\240c\250\024\250U\260!\330\010\014\210F\220.\240\010\250\006\250a\330\014\017\210u\220G\2301\330\020\026\220a\220x\230t\240:\250V\2601\330\024 \240\004\240F\250$\250a\330\010\014\210H\220A\330\014\017\210u\220G\2301\330\020\026\220i\230q\330\024+\2502\250Q\330\010\013\2101\330\014\022\220!\220:\230Q\330\010\017\210q\200A\330\010\021\220\024\320\025&\240a\240v\250Q\330\010\r\210T\220\024\220U\230!\330\010\n\210\047\220\021\220!\330\010\013\2104\210}\230G\2401\330\014\016\210a""\210z\230\024\230Q\330\010\016\210a\330\010\022\220!\330\010\014\210J\320\026\047\240q\250\004\250H\260D\270\005\270Q\330\010\017\210r\220\025\220a\220q\200A\330\010\035\230Q\330\010\t\330\014\r\330\020\030\230\004\230A\230V\2404\320\047;\2701\330\014\023\220?\240!\330\020\026\220k\240\021\330\0247\260r\270\021\330\014\023\2201\330\010\017\210}\230A\330\014\017\210w\220a\220s\230(\240!\330\020\027\220q\230\005\230Q\230a\340\020\027\220{\240!\2401\330\014\r\210Y\220d\230/\250\021\250&\260\001\330\014\r\200A\330\010\035\230Q\330\010\t\330\014\017\210v\220S\230\001\330\020\027\220q\330\014\017\210t\2201\330\020\021\330\024\034\230C\230q\240\001\330\027\030\330\024\034\230E\240\021\240!\340\020\023\2204\220z\240\021\240\047\250\021\330\024\034\230K\240q\250\001\330\020\024\220J\230a\230w\240a\330\030\034\230D\240\001\330\024\034\230E\240\027\250\001\250\024\250Q\330\010\017\210}\230A\330\014\r\210Y\220d\230/\250\021\250!\2505\260\001\260\024\260Q\330\014\r\340\014\017\210t\220:\230T\240\032\2501\250G\2601\330\020\023\2204\220t\2301\330\024\032\320\032,\250A\330\030\031\3309;\2701\330\020\021\330\024\034\230E\240\027\250\001\250\024\250Q\330\020\027\320\027-\250Q\330\024\032\320\032,\250A\330\030\031\230\021\330\030\031\230\021\330\030\031\230\021\330\030\031\230\021\330\030\031\230\030\240\022\320#3\2602\260Q\330\021\025\220T\230\032\2404\240z\260\021\260\047\270\021\330\020\023\2204\220t\2301\330\024\032\320\032,\250A\330\030\031\3309;\2701\330\020\030\230\005\230W\240A\240T\250\021\330\014\023\2201\200A\330\010\035\230Q\330\010\t\330\014\020\220\001\220\026\220t\320\033/\250q\330\010\017\210}\230A\330\014\017\210q\220\001\330\020\021\220\031\230$\230o\250Q\250a\250u\260A\260T\270\021\340\020\021\220\031\230$\230o\250Q\250f\260A\330\014\r\200A\330\010\035\230Q\330\010\013\2104\210t\2201\330\014\022\220-\230q\330\020\021\330\020\031\230\026\230u\240D\250\001\330\010\020\220\004\220M\240\021\320\"4\260A\330\010\020\220\016\230a\230t\2401\330\010\014\210F\220)\2304\230v""\240Q\330\014\023\2201\220G\2306\240\021\330\010\r\210X\220Q\330\010\r\210R\210u\220A\330\010\n\210!\210:\220Q\330\010\017\210u\220K\230q\240\001\200A\330\010\035\230Q\330\010\014\210H\220A\330\014\017\210s\220!\2206\230\023\230A\330\020\022\220!\2204\220q\230\006\230a\340\020\023\2203\220a\220v\230S\240\003\2401\240A\330\024\032\230*\240A\330\030\031\330\030\033\2303\230a\230w\240c\250\021\250!\330\020\024\220F\230)\2403\240a\240v\250Q\330\024\026\220a\220x\230q\330\014\r\330\020\024\320\024%\240Q\240i\250t\2605\270\001\330\023\024\330\020\021\330\023\024\330\020\021\200A\330\010\035\230Q\330\010\014\210H\220A\330\014\017\210z\230\021\230&\240\001\330\020\023\2207\230!\2301\340\020\024\320\024$\240A\240V\2504\250u\260A\200A\330\010\035\230Q\330\010\016\210f\220D\230\001\230\024\230T\240\021\240!\330\010\013\2105\220\003\2201\330\014\020\220\006\220a\220t\2301\230D\240\004\240A\330\r\022\220#\220Q\330\014\022\320\022#\2401\330\r\022\220#\220Q\330\014\022\220.\240\001\330\r\022\220#\220Q\330\014\022\220&\230\n\240$\240a\240t\2504\250q\260\004\260D\270\001\270\021\330\014\023\2204\220v\230Q\230f\240D\250\001\330\014\020\220\017\230q\240\006\240f\250I\260T\270\025\270a\330\r\022\220#\220Q\330\014\024\220D\230\001\230\021\330\014\020\220\016\230a\230w\240d\250%\250q\330\r\022\220#\220Q\330\014\024\220D\230\001\230\022\2306\240\021\240!\330\014\023\2204\220v\230Q\230e\2401\240D\250\004\250A\330\014\020\220\010\230\005\230Q\230a\330\020\027\220t\2306\240\021\240&\250\004\250A\330\020\027\220t\2301\230A\330\014\017\210w\220a\220t\2306\240\021\240&\250\001\330\r\022\220#\220Q\330\014\021\220\027\230\004\230A\230T\240\024\240Q\240a\330\014\017\210t\2207\230!\330\020\031\230\024\230V\2401\240F\250$\250a\330\020\022\220!\2207\230!\330\r\022\220#\220Q\330\014\023\2204\220q\230\001\330\014\024\220D\230\006\230a\230v\240T\250\021\330\014\020\220\001\320\021\"\240!\330\r\022\220#\220Q\330\014\023\2204\220q\230\001\330\014\030\230\004\230A\230Q\330\014\024\220D\230\001\230\021\330""\014\016\210a\210x\220t\2301\230H\240K\250q\260\006\260f\270K\300u\310G\320SV\320VW\33004\260A\330\r\022\220#\220Q\330\014\r\340\014\023\2203\320\026)\250\022\2501\200A\330\010\035\230Q\340\010\014\210H\220A\330\014\023\2204\220z\240\021\240&\250\001\330\014\022\220&\230\004\230A\230T\240\024\240Q\240a\330\014\017\210u\220C\220q\330\020\031\230\021\340\020\031\230\024\230V\2401\240D\250\001\250\024\250T\260\021\330\014\017\210q\330\020\024\320\024%\240Q\240d\250!\2504\250t\2605\270\001\330\020\021\200A\330 !\330\010\014\210M\230\021\330\010\014\210N\230!\330\010\014\320\014\037\230q\330\010\014\210I\220Q\330\010\014\210G\2201\330\010\014\210H\220A\330\010\014\210O\2301\200A\330%5\260Q\330\0269\270\021\330\r\021\220\021\220*\230I\240Q\330\014\020\220\001\220\025\220a\330\010\013\2101\330\014\020\220\001\220\027\230\001\230\021\330\010\017\210s\220!\2208\2303\230e\240:\250Z\260q\330\023#\320#4\260M\300\021\200N\220.\240\001\330\010\t\330\014\026\220m\2406\250\030\260\026\260w\270g\300T\310\021\310!\330\017\020\330\014\023\2208\230<\240q\330\010\013\2101\330\014\023\220:\230]\250&\260\010\270\006\270a\340\014\023\220:\230Q\320\000\021\220\021\330\004\013\2102\210T\220\021\220!\330\004\021\220\022\2204\220q\320\030)\250\035\260c\270\030\300\021\330\004\013\2108\2201\220I\230U\240&\250\013\260<\270{\310!\330\004\013\2104\210{\230!\2301\320\000\021\220\021\330\013\014\330\013\014\330\013\014\330\004\007\200u\210C\210q\330\010\017\210s\220%\220q\230\001\330\004\r\210X\220]\240!\330\010\016\210a\330\004\n\210+\220Q\330\010\016\210a\330\010\r\210Q\330\010\020\220\001\330\010\r\210Q\330\004\n\210+\220Q\330\010\t\330\010\r\210Q\330\010\017\210q\330\010\r\210Q\330\004\r\210W\220F\230+\240Q\240a\330\004\007\200s\210!\2106\220\022\2201\330\010\r\210Q\210a\330\010\013\2105\220\001\220\021\330\004\024\220D\230\001\230\021\330\004\013\2104\210q\220\001\330\004\013\2101\330\004\007\200w\210a\330\010\014\210G\2201\220B\220a\330\004\010\210\t\220\021\330\010\013\2104\210w\220a\330\014""\021\220\021\320\022%\240R\240q\330\014\017\210u\220A\220Q\330\010\016\210h\220e\2306\240\021\240%\240q\330\010\013\2104\210{\230!\2301\330\014\023\2204\220r\230\021\330\014\024\220D\230\001\230\021\330\010\014\210A\210X\220Q\330\004\007\200~\220S\230\001\330\010\033\2303\230f\240E\250\021\330\010\030\230\001\340\r\021\220\021\220/\240\031\250!\330\014\037\230q\240\005\240Q\330\004\017\210x\220q\320\030*\250%\250q\330\004\r\210X\220[\240\001\240\021\330\004\007\200w\210a\330\r\021\220\021\220\047\230\031\240)\2501\330\014\r\210V\2201\220A\340\010\013\2107\220&\230\001\230\021\320\000\025\220Q\360\032\000\005\021\220\001\330\004\010\210\003\210;\220i\230q\240\001\330\010\013\210:\220Q\220i\230q\340\014\r\330\010\017\210w\220a\220q\330\010\013\2104\210|\2307\240!\2406\250\024\250U\260\047\270\021\330\014\r\330\010\013\2104\210q\330\014\023\2201\340\014\023\2206\230\021\230\"\230B\230a\330\010\013\2102\210R\210r\220\023\220C\220q\230\001\330\014\031\230\021\340\014\031\230\026\230q\240\002\240\"\240A\330\010\014\210D\220\n\230!\230<\240q\330\020\023\2204\220z\240\021\240&\250\001\330\014\r\330\010\022\220$\220e\2303\320\0361\260\027\270\001\270\021\330\010\013\2102\210S\220\002\220$\220d\230$\230f\240A\330\014\026\220a\330\010\013\210:\220W\230E\240\024\240Z\250r\260\022\2603\260b\270\004\270D\300\004\300F\310!\330\014\026\220a\330\010\014\210A\330\014\021\220\024\220[\240\003\320#5\260W\270A\270Q\330\021\025\220R\220s\230#\230Q\230h\240b\250\002\250$\250d\260*\270F\300!\330\014\017\210q\330\020\025\220R\220s\230\"\230D\240\004\240D\250\006\250a\330\030\033\2308\2403\240a\330\024\032\230!\2302\230R\230u\240A\340\024\030\320\030+\2507\260!\2601\340\024\033\2304\230r\240\021\240&\250\003\2502\250Q\330\024\032\230!\2302\230R\230u\240A\330\014\017\210q\330\020\034\230A\330\020\023\2202\220S\230\003\2301\230H\240B\240b\250\004\250D\260\n\270&\300\001\330\024\032\230!\2302\230R\230u\240A\340\024\030\320\030*\250\047\260\021\260!\330\024!\240\032\2501\250A\250T\260\021\330""\024\032\230!\2302\230R\230u\240A\320\000\026\320\026.\250a\340\004\013\2106\220\026\220q\230\001\330\004\r\210V\2201\220A\330\004\017\210x\220r\230\021\330\004\016\210a\330\004\013\2105\220\013\2301\230I\240Q\330\004\007\200u\210I\220Q\220a\330\010\020\220\005\220S\230\001\330\004\014\210E\220\021\220#\220V\2301\330\004\014\210E\220\027\230\001\230\021\330\004\007\200t\2101\330\010\016\210m\2301\330\014&\240b\250\001\330\014\025\220U\230%\230q\330\004\025\220U\230\"\230E\240\026\240q\330\004\007\200t\2103\210a\330\010\016\210m\2301\330\014H\310\001\320IY\320Yb\320bg\320gl\320lm\330\004\013\2105\220\001\220\021\220!\2206\230\023\230D\240\005\240Y\250f\260A\260U\270#\270Q\270f\300A\330\004\013\2105\220\001\220\025\220d\230!\330\004\005\330\010\013\2104\210q\330\014\022\220-\230q\330\020\021\330\020\031\230\025\230e\2401\330\010\014\210J\220a\220v\230Q\230d\240!\330\020\024\220F\230!\2302\230Q\230c\240\023\240A\330\014\023\2201\220G\2305\240\006\240f\250J\260f\270A\270Q\330\010\024\220I\230Z\240q\250\010\260\006\260a\330\010\017\210w\220a\220q\320\000\026\320\026.\250a\340\004\013\2108\2206\230\021\230!\330\004\r\210V\2201\220A\330\004\013\2105\220\013\2301\230A\330\004\014\210E\220\026\220q\230\006\230b\240\001\240\021\330\004\007\200u\210I\220Q\220a\330\010\020\220\005\220S\230\001\330\004\007\200t\2107\220!\330\010\024\220A\330\010\017\210t\2206\230\026\230q\330\t\r\210U\220)\2301\230A\330\010\016\210m\2301\320\034I\310\022\3101\330\034%\240W\250E\260\021\340\010\020\220\005\220S\230\001\330\010\023\220;\230e\2406\250\021\250%\250q\330\010\016\210o\230Q\230j\250\006\250a\330\004\016\210h\220c\230\021\330\004\016\210a\330\004\005\330\010\013\2104\210q\330\014\022\220-\230q\330\020\021\330\020\031\230\027\240\005\240Q\330\010\014\210J\220a\220v\230Q\230d\240!\330\020\024\220F\230!\2302\230Q\230c\240\023\240A\330\014\023\2201\220G\2307\240+\250U\260*\270F\300!\3001\330\010\024\220I\230Z\240q\250\010\260\006\260a\330\010\017\210w\220a\220q\320\000\027\220|\240?\260!""\330\004\007\200z\220\021\220&\230\001\230\024\230Q\330\010\017\210v\220Q\220d\230&\240\001\240\021\340\004\n\210&\220\006\220a\220q\330\004\013\2104\210v\220Q\330\004\007\200t\210;\220a\220q\330\010\017\210t\2201\220C\220w\230a\230q\330\010\013\2104\210{\230!\2306\240\023\240D\250\013\2601\260A\330\014\023\2204\220w\230a\230q\330\014\017\210u\220C\220q\330\020\027\220t\2308\2401\240H\250A\330\020\027\220t\2308\2401\240F\250!\330\014\024\220A\340\014\017\210u\220C\220q\330\020\026\220m\2401\330\024\025\330\024\035\230U\240%\240q\330\010\017\210q\220\006\220e\2307\240&\250\001\250\021\330\t\016\210d\220,\230a\330\010\013\2106\220\027\230\001\330\014\022\220-\230q\330\020\021\330\020\031\230\025\230e\2401\330\010\017\210q\220\006\220f\230F\240!\2401\330\t\r\210[\230\001\230\021\330\010\017\210z\230\021\230(\240&\250\001\330\n\016\210k\230\021\230!\330\n\r\210U\220#\220Q\330\010\016\210m\2301\330\014(\250\002\250$\250f\260B\260a\260q\330\014\025\220U\230%\230q\330\t\016\210d\220&\230\010\240\001\330\010\016\210m\2301\330\014$\240B\240a\330\014\025\220U\230%\230q\330\t\016\210d\220)\230:\240Q\330\010\016\210m\2301\330\014\034\230B\230a\330\014\025\220U\230%\230q\330\t\r\210[\230\001\230\021\330\010\017\210y\230\001\230\030\240\026\240q\330\t\r\210[\230\001\230\021\330\010\017\210}\230A\230X\240V\2501\330\t\r\210[\230\001\230\021\330\010\017\210}\230A\230X\240V\2501\330\t\r\210[\230\001\230\021\330\010\017\210y\230\001\230\030\240\026\240q\330\t\r\210[\230\001\230\021\330\010\017\210q\220\013\2305\240\006\240a\240r\250\021\250%\250v\260Q\260a\330\004\013\2101\210H\220E\230\026\230q\240\002\240!\2405\250\006\250a\250q\320\000\027\320\027/\250q\330\004\014\210F\220!\2202\220Q\220a\330\004\r\210Q\330\004\016\210h\220c\230\021\330\004\005\330\010\013\2104\210q\330\014\022\220-\230q\330\020\021\330\020\031\230\027\240\005\240Q\330\010\014\210J\220a\220v\230Q\230d\240!\330\020\024\220F\230!\2302\230Q\230c\240\023\240A\330\014\023\2201\220H\230G\2402\240U\250!\2509\260F\270!""\2701\330\010\024\220I\230^\2501\250H\260F\270!\330\010\016\210g\220Q\220a\320\000\032\320\0322\260!\340\004\013\2106\220\026\220q\230\001\330\004\013\2105\220\013\2301\230A\330\004\013\2105\220\006\220a\220v\230R\230q\240\001\330\004\013\2101\210K\220u\230G\2406\250\021\250!\320\000\032\320\0322\260!\340\004\013\2106\220\026\220q\230\001\330\004\013\2105\220\013\2301\230A\330\004\014\210E\220\026\220q\230\006\230b\240\001\240\021\330\004\014\210E\220\026\220q\230\005\230Q\330\004\007\200s\210!\2107\220#\220Q\330\010\016\210m\2301\330\014I\310\022\3101\330\014\025\220U\230%\230q\330\004\017\210u\220A\220R\220v\230Q\330\004\007\200t\2103\210a\330\010\016\210m\2301\330\014\r\330\014\025\220U\230%\230q\330\004\007\200t\2106\220\027\230\001\230\021\330\010\016\210m\2301\330\014\r\330\014\016\210e\2209\230E\240\025\240a\330\004\013\2105\220\001\220\022\2206\230\021\330\004\013\2101\210K\220u\230E\240\027\250\006\250a\250q\320\000\032\320\032?\270q\340\004\014\210F\220&\230\001\230\026\230|\2501\330\004\007\200v\210R\210q\330\010\021\220\026\220r\230\026\230v\240Q\240f\250L\270\001\340\010\021\220\030\230\021\230#\230S\240\006\240b\250\001\330\004\014\210H\220A\220S\230\002\230\047\240\021\320\000\033\320\0333\2601\340\005\014\210F\220)\2306\240\021\240$\240f\250A\250Q\330\004\016\210a\330\004\007\200u\210I\220Q\220a\330\010\020\220\005\220S\230\001\330\004\007\200u\210K\220q\230\001\330\010\020\220\006\220e\2305\240\001\240\023\240G\2504\250q\330\t\016\210k\230\021\230!\330\010\020\220\010\230\005\230U\240!\2403\240g\250T\260\021\330\t\017\210s\220!\330\010\020\220\010\230\005\230V\2401\340\010\017\210s\320\0221\260\027\270\001\330\004\005\330\010\013\2104\210q\330\014\022\220-\230q\330\020\021\330\020\031\230\025\230e\2401\330\010\014\210J\220a\220v\230Q\230d\240!\330\014\021\220\026\220q\230\002\230!\2303\230c\240\021\330\021\024\220F\230!\2302\230Q\230b\240\013\2501\250A\330\021\024\220F\230!\2302\230Q\230c\240\023\240A\330\014\023\2206\230\021\330\010\024\220I\230Z""\240q\250\010\260\006\260a\330\010\017\210w\220a\220q\320\000\036\320\0361\260\021\330\004\r\210X\320\025%\240Q\240h\250a\250y\270\001\330\004\017\210q\330\004\016\210a\330\004\r\210Q\330\004\017\210q\340\004\022\220.\240\001\360\022\000\005\006\330\010\027\220q\360\006\000\t\023\220-\230y\250\001\330\010\013\2109\220C\220x\230q\330\014\r\330\010\013\2109\220C\220x\230t\2405\250\013\2603\260d\270#\270[\310\003\3101\330\014\033\2301\330\014\026\220m\2409\250A\330\010\013\2109\220C\220x\230q\330\014\022\220-\230q\320 :\270\"\270A\330 )\250\025\250e\2601\330\010\023\2201\330\010\022\220-\230y\250\001\330\010\013\2109\220C\220x\230{\250$\250i\260s\270(\300$\300d\310+\320UX\320XY\330\014\017\210}\230C\230q\330\020\032\230!\330\021\036\230c\240\021\330\020\031\230\021\340\020\030\230\007\230q\240\001\330\014\017\210y\230\003\2308\2401\330\020\021\330\014\r\330\010\013\210=\230\007\230q\330\014\022\220-\230q\320 :\270\"\270A\330 )\250\025\250e\2601\330\010\013\2109\220C\220x\230t\2404\240{\260#\260Q\330\014\030\230\001\330\014\032\230!\330\014\031\230\021\330\014\030\230\n\240!\330\014\024\220A\330\014\r\330\020\032\230,\240c\250\024\250Y\260a\260q\330\020\023\220:\230S\240\001\330\024 \240\001\330\020\032\230!\330\020\023\2209\230C\230x\240{\260$\260a\330\024\032\230-\240q\320(B\300\"\300A\330(1\260\025\260e\2701\330\020\024\220D\230\013\2401\330\031\"\240#\240X\250[\270\004\270I\300S\310\010\320PT\320TX\320Xc\320cf\320fg\330\024#\320#5\260Q\260j\300\013\3101\330\024\034\230A\230\\\250\021\330\024\034\230G\2401\240A\330\024\025\330\020\025\220W\230B\230j\250\001\330\020\023\220;\230d\240)\2503\250h\260d\270$\270k\310\023\310A\330\024\"\240!\330\025 \240\004\240I\250S\260\010\270\004\270D\300\013\3103\310a\330\024\"\240!\330\024\027\220t\2301\330\030$\240N\260!\330\025\031\230\033\240D\250\t\260\023\260H\270D\300\004\300K\310t\320SX\320X]\320]^\330\024 \240\001\330\024!\240\021\330\024#\2405\250\005\250U\260%\260u\270D\300\001\300\021\330\004\013\210:\220Y\230h\240a\320""\000\037\320\037;\2701\330\004\n\210\047\220\021\330\004\014\210A\330\004\n\210\047\220\021\330\004\014\210A\330\004\014\210F\220+\230Q\230a\330\004\007\200u\210C\210q\330\010\017\210u\220A\220U\230!\2305\240\001\330\004\014\210A\210U\220!\2205\230\001\230\021\330\004\t\210\027\220\001\220\025\220a\220t\2301\230B\230a\330\004\007\200u\210B\210c\220\021\220!\340\010\r\210W\220A\220U\230!\2305\240\002\240!\330\004\013\2102\210U\220!\2201\320\0002\260!\330\004\013\2108\2201\220I\230U\240!\330\004\013\2104\210{\230!\2301\320\004\033\2301\330\010\013\2104\210s\220!\330\014\023\2201\330\010\017\210t\220:\230Q\330\014\020\220\014\230D\240\r\250T\260\021\330\014\020\220\010\230\004\230F\240$\240g\250[\270\001\320\004 \240\001\330\010\035\230Q\330\010\020\220\001\330\010\017\210q\330\010\014\320\014\035\230Q\230d\240*\250D\260\004\260G\2705\300\001\330\010\013\210>\230\023\230A\330\014\026\220d\230$\230a\230q\340\014\026\220a\330\010\017\210r\220\025\220a\220x\230v\240Q\320\004 \240\013\320+;\2701\330\021$\320$:\270!\330\021\"\240!\330\010\014\210K\220q\360\006\000\t\014\2101\330\023\024\330\014\024\220E\230\021\330\020\021\340\020\021\340\014\017\210{\230#\230Q\330\020\035\230Q\330\010\013\210;\220c\230\021\330\014\032\230$\320\0360\260\001\260\021\330\032\036\320\0360\260\001\260\021\360\010\000\r\021\320\020%\240T\250\032\3203E\300U\310!\330\014\020\320\020\"\240!\320#5\260Z\270q\300\001\330\014\020\320\020\"\240!\320#3\260:\270Q\270a\330\010\014\210N\230$\230n\250A\340\010\014\210L\230\n\240!\2409\250A\330\010\013\2105\220\003\2205\230\004\230K\240w\250a\330\014\r\330\020\031\230\023\230J\240a\240q\330\023\024\360\006\000\021\033\230&\240\001\330\020\031\230\026\230q\330\020\023\220;\230c\240\021\330\024\033\2307\240!\2401\330\024\027\220t\2309\240A\240X\250S\260\004\260I\270Q\270a\330\030\037\230t\2403\240a\330\025 \240\003\2401\330\024\033\2307\240!\2401\340\024\033\2301\330\020\023\2201\330\024\034\230F\240\"\240A\330\010\014\210H\220A\330\010\014\210K\220u\230A\230Y""\240e\2506\260\034\270]\310+\320UY\320YZ\330\010\013\210:\220S\230\001\330\014\030\230\001\330\010\014\210M\230\021\330\010\014\320\014\034\230A\330\010\013\320\013\033\2307\240!\330\014\020\320\020#\2401\320\004*\250!\330\010\021\220\031\230!\2306\240\021\330\010\014\210L\230\001\330\010\014\210H\220A";
    PyObject *data = NULL;
    #define __Pyx_DecompressString_UNUSED
    #define __Pyx_DecompressString_LZSS_UNUSED
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 439; i++) {
      Py_ssize_t bytes_length = str_length_index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 99) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 439; i < 493; i++) {
      Py_ssize_t bytes_length = bytes_length_index[i-439].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 493; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 439;
      for (Py_ssize_t i=0; i<54; ++i) {
        #if PY_VERSION_HEX >= 0x030F0000
        PyUnstable_SetImmortal(table[i]);
        #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
        #if PY_VERSION_HEX < 0x030E0000
        if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
        #else
        if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
        #endif
        {
          Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
        }
        #else
        if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab + 0;
    int8_t const cint_constants_1[] = {0,-1,1,2,3};
    for (int i = 0; i < 5; i++) {
      numbertab[i] = PyLong_FromLong(cint_constants_1[i - 0]);
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_number_tab;
    for (Py_ssize_t i=0; i<5; ++i) {
      #if PY_VERSION_HEX >= 0x030F0000
      PyUnstable_SetImmortal(table[i]);
      #elif CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      if ((PY_SSIZE_T_MAX <= _Py_IMMORTAL_REFCNT_LOCAL)) break;
      #if PY_VERSION_HEX < 0x030E0000
      if (_Py_IsOwnedByCurrentThread(table[i]) && Py_REFCNT(table[i]) == 1)
      #else
      if (PyUnstable_Object_IsUniquelyReferenced(table[i]))
      #endif
      {
        Py_SET_REFCNT(table[i], ((Py_ssize_t)_Py_IMMORTAL_REFCNT_LOCAL + 1));
      }
      #else
      if ((PY_SSIZE_T_MAX < _Py_IMMORTAL_INITIAL_REFCNT)) break;
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
#ifdef __cplusplus
namespace {
#endif
typedef struct {
    unsigned int argcount : 4;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 5;
    unsigned int flags : 10;
    unsigned int first_line : 11;
} __Pyx_PyCode_New_function_description;
#ifdef __cplusplus
} /* anonymous namespace */
#endif
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 942};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_tok_type, __pyx_mstate->__pyx_n_u_tok_string, __pyx_mstate->__pyx_n_u_srow, __pyx_mstate->__pyx_n_u_scol, __pyx_mstate->__pyx_n_u_erow, __pyx_mstate->__pyx_n_u_ecol, __pyx_mstate->__pyx_n_u_line};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_get_token, __pyx_mstate->__pyx_kp_b_iso88591_N_m6_wgT_8_q_1_a_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 47};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_coerce_text, __pyx_mstate->__pyx_kp_b_iso88591_t_Qc_7_3a_3aq_5_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 59};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_message, __pyx_mstate->__pyx_n_u_position, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_6_L_HA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 64};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_msg};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_str, __pyx_mstate->__pyx_kp_b_iso88591_A_c_at1_4q_A_T_4t9AQ_4q_9Bd_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 82};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_from_template, __pyx_mstate->__pyx_n_u_path};
    __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_get_file_template, __pyx_mstate->__pyx_kp_b_iso88591_2U_q_xq_XQ_j_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {10, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 100};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_namespace, __pyx_mstate->__pyx_n_u_stacklevel, __pyx_mstate->__pyx_n_u_get_template, __pyx_mstate->__pyx_n_u_default_inherit, __pyx_mstate->__pyx_n_u_line_offset, __pyx_mstate->__pyx_n_u_delimiters, __pyx_mstate->__pyx_n_u_delimeters, __pyx_mstate->__pyx_n_u_warnings, __pyx_mstate->__pyx_n_u_caller, __pyx_mstate->__pyx_n_u_globals, __pyx_mstate->__pyx_n_u_lineno};
    __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_1_Kq_1_E_Q_Q_c_0_0_T_3EU_5Zq_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 154};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cls, __pyx_mstate->__pyx_n_u_filename, __pyx_mstate->__pyx_n_u_namespace, __pyx_mstate->__pyx_n_u_encoding, __pyx_mstate->__pyx_n_u_default_inherit, __pyx_mstate->__pyx_n_u_get_template, __pyx_mstate->__pyx_n_u_f, __pyx_mstate->__pyx_n_u_c};
    __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_from_filename, __pyx_mstate->__pyx_kp_b_iso88591_A_5Q_9_IQ_a_1_s_83e_Zq_4M, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 164};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_q_q_6_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS), 169};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_kw, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_defs, __pyx_mstate->__pyx_n_u_inherit_2};
    __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_substitute, __pyx_mstate->__pyx_kp_b_iso88591_A_1_q_iq_s_6_1_iq_t7_4q_A_iq_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 193};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_parts, __pyx_mstate->__pyx_n_u_defs, __pyx_mstate->__pyx_n_u_inherit_2};
    __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_interpret, __pyx_mstate->__pyx_kp_b_iso88591_Q_q_Qd_D_G5_A_d_aq_a_r_axvQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 204};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_body, __pyx_mstate->__pyx_n_u_defs, __pyx_mstate->__pyx_n_u_inherit_template, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_templ, __pyx_mstate->__pyx_n_u_self_2, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_value};
    __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_interpret_inherit, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_4t1_q_uD_M_4A_at1_F_4vQ_1G6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 219};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_codes, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_defs, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_item};
    __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_interpret_codes, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_HA_z_7_1_AV4uA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 19, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 227};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_code, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_defs, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_vars, __pyx_mstate->__pyx_n_u_expr, __pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_parts, __pyx_mstate->__pyx_n_u_base, __pyx_mstate->__pyx_n_u_part, __pyx_mstate->__pyx_n_u_func_2, __pyx_mstate->__pyx_n_u_var, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_signature};
    __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_interpret_code, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_fD_T_5_1_at1D_A_Q_1_Q_Q_at4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {7, 0, 0, 11, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 270};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_vars, __pyx_mstate->__pyx_n_u_expr, __pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_defs, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_item, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_value};
    __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_interpret_for, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_HA_s_6_A_4q_a_3avS_1A_A_3awc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 289};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_parts, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_defs, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_part, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_interpret_if, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_HA_4z_AT_Qa_uCq_V1D_T_q_Qd_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 303};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_code, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_e, __pyx_mstate->__pyx_n_u_arg0};
    __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_eval_2, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_AV4_1_k_7r_1_A_was_q_Qa_1_Yd, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 320};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_code, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_e};
    __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_exec, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_t_q_A_q_oQauAT_oQfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 331};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_traceback_hide, __pyx_mstate->__pyx_n_u_e};
    __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_repr, __pyx_mstate->__pyx_kp_b_iso88591_A_Q_vS_q_t1_Cq_E_4z_Kq_Jawa_D_E, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 373};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_msg, __pyx_mstate->__pyx_n_u_pos};
    __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_add_line_info, __pyx_mstate->__pyx_kp_b_iso88591_A_AT_AQ_4q_4q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS), 381};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_delimiters, __pyx_mstate->__pyx_n_u_kw, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_delimeters, __pyx_mstate->__pyx_n_u_tmpl};
    __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_sub, __pyx_mstate->__pyx_kp_b_iso88591_2T_4q_c_81IU_4_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 388};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_vars, __pyx_mstate->__pyx_n_u_filename, __pyx_mstate->__pyx_n_u_tmpl};
    __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_paste_script_template_renderer, __pyx_mstate->__pyx_kp_b_iso88591_2_81IU_4_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS), 395};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_kw, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_value};
    __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_F_2V1_1F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 399};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_value};
    __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_setattr, __pyx_mstate->__pyx_kp_b_iso88591_A_AXQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 402};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_getattr, __pyx_mstate->__pyx_kp_b_iso88591_A_4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 408};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_key};
    __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_getitem, __pyx_mstate->__pyx_kp_b_iso88591_A_S_t_q_a_t_q_a_4_1F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 417};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_k, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_q_uAQk_Ct3e6_fA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 424};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_template, __pyx_mstate->__pyx_n_u_func_name, __pyx_mstate->__pyx_n_u_func_signature, __pyx_mstate->__pyx_n_u_body, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_bound_self};
    __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_M_N_q_IQ_G1_HA_O1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 434};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_q_T_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 439};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_str, __pyx_mstate->__pyx_kp_b_iso88591_A_t1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS), 442};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_kw, __pyx_mstate->__pyx_n_u_values, __pyx_mstate->__pyx_n_u_ns, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_subdefs};
    __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_call, __pyx_mstate->__pyx_kp_b_iso88591_A_avQ_T_U_4_G1_az_Q_a_J_q_HD_Q_r, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 453};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_obj, __pyx_mstate->__pyx_n_u_type};
    __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_get_2, __pyx_mstate->__pyx_kp_b_iso88591_1_4s_1_t_Q_D_T_F_g, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 13, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 460};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_kw, __pyx_mstate->__pyx_n_u_values, __pyx_mstate->__pyx_n_u_sig_args, __pyx_mstate->__pyx_n_u_var_args, __pyx_mstate->__pyx_n_u_var_kw, __pyx_mstate->__pyx_n_u_defaults, __pyx_mstate->__pyx_n_u_extra_kw, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_value_expr, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_signature, __pyx_mstate->__pyx_kp_b_iso88591_A_HKt1_1_F_2V1_t7_e7_iq_Rq_uCq_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 502};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_Ja_G_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 506};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_D_T, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 512};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_template_obj};
    __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_init, __pyx_mstate->__pyx_kp_b_iso88591_A_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 515};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_attr};
    __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_getattr, __pyx_mstate->__pyx_kp_b_iso88591_A_wat_F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 518};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_4z_D, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS), 523};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self, __pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_kw};
    __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_call, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 526};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_str, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 529};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_repr_2, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 532};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[40] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_unicode_2, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[40])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 535};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[41] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_iter, __pyx_mstate->__pyx_kp_b_iso88591_A_t1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[41])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 538};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_self};
    __pyx_mstate_global->__pyx_codeobj_tab[42] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_bool, __pyx_mstate->__pyx_kp_b_iso88591_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[42])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 16, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 549};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s_2, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_trim_whitespace, __pyx_mstate->__pyx_n_u_line_offset, __pyx_mstate->__pyx_n_u_delimiters, __pyx_mstate->__pyx_n_u_start_braces, __pyx_mstate->__pyx_n_u_end_braces, __pyx_mstate->__pyx_n_u_in_expr, __pyx_mstate->__pyx_n_u_chunks, __pyx_mstate->__pyx_n_u_last, __pyx_mstate->__pyx_n_u_last_pos, __pyx_mstate->__pyx_n_u_token_re, __pyx_mstate->__pyx_n_u_match, __pyx_mstate->__pyx_n_u_expr, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_part};
    __pyx_mstate_global->__pyx_codeobj_tab[43] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_lex, __pyx_mstate->__pyx_kp_b_iso88591_O_Oq_6_G_XM___a_j_8K___a_Q_1_Bc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[43])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 614};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_i, __pyx_mstate->__pyx_n_u_last_trim, __pyx_mstate->__pyx_n_u_current, __pyx_mstate->__pyx_n_u_item, __pyx_mstate->__pyx_n_u_prev, __pyx_mstate->__pyx_n_u_next_chunk, __pyx_mstate->__pyx_n_u_prev_ok, __pyx_mstate->__pyx_n_u_m};
    __pyx_mstate_global->__pyx_codeobj_tab[44] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_trim_lex, __pyx_mstate->__pyx_kp_b_iso88591_Q_iq_Qiq_waq_4_7_6_U_4q_1_6_Ba, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[44])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 673};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_string_2, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_last_index, __pyx_mstate->__pyx_n_u_last_pos, __pyx_mstate->__pyx_n_u_lines, __pyx_mstate->__pyx_n_u_column_2};
    __pyx_mstate_global->__pyx_codeobj_tab[45] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_find_position, __pyx_mstate->__pyx_kp_b_iso88591_q_F_1_vRq_r_vQfL_S_b_HAS, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[45])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 683};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s_2, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_line_offset, __pyx_mstate->__pyx_n_u_delimiters, __pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_result, __pyx_mstate->__pyx_n_u_next_chunk};
    __pyx_mstate_global->__pyx_codeobj_tab[46] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse, __pyx_mstate->__pyx_kp_b_iso88591_qd_S_E_1_Q_IZq_gQa_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[46])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 741};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_expr, __pyx_mstate->__pyx_n_u_pos};
    __pyx_mstate_global->__pyx_codeobj_tab[47] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_expr, __pyx_mstate->__pyx_kp_b_iso88591_z_Q_vQd_aq_4vQ_t_aq_t1Cwaq_4_6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[47])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 795};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_pieces, __pyx_mstate->__pyx_n_u_next_chunk};
    __pyx_mstate_global->__pyx_codeobj_tab[48] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_cond, __pyx_mstate->__pyx_kp_b_iso88591_q_F_2Qa_Q_hc_4q_q_Q_JavQd_F_2Qc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[48])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 811};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_part, __pyx_mstate->__pyx_n_u_next_chunk};
    __pyx_mstate_global->__pyx_codeobj_tab[49] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_one_cond, __pyx_mstate->__pyx_kp_b_iso88591_31_F_6_fAQ_a_uIQa_S_uKq_e5_G4q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[49])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 12, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 839};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_match, __pyx_mstate->__pyx_n_u_vars_part, __pyx_mstate->__pyx_n_u_vars, __pyx_mstate->__pyx_n_u_expr, __pyx_mstate->__pyx_n_u_next_chunk, __pyx_mstate->__pyx_n_u_v};
    __pyx_mstate_global->__pyx_codeobj_tab[50] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_for, __pyx_mstate->__pyx_kp_b_iso88591_a_6_q_V1A_xr_a_5_1IQ_uIQa_S_E_V, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[50])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 872};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_parts, __pyx_mstate->__pyx_n_u_var, __pyx_mstate->__pyx_n_u_expr};
    __pyx_mstate_global->__pyx_codeobj_tab[51] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_default, __pyx_mstate->__pyx_kp_b_iso88591_2_6_q_5_1A_E_q_b_E_q_Q_s_7_Q_m1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[51])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 895};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_expr};
    __pyx_mstate_global->__pyx_codeobj_tab[52] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_inherit, __pyx_mstate->__pyx_kp_b_iso88591_2_6_q_5_1A_5_avRq_1KuG6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[52])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 10, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 903};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_context, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_start, __pyx_mstate->__pyx_n_u_func_name, __pyx_mstate->__pyx_n_u_sig, __pyx_mstate->__pyx_n_u_sig_text, __pyx_mstate->__pyx_n_u_content, __pyx_mstate->__pyx_n_u_next_chunk};
    __pyx_mstate_global->__pyx_codeobj_tab[53] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_def, __pyx_mstate->__pyx_kp_b_iso88591_a_86_V1A_5_1A_E_q_b_uIQa_S_t7_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[53])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 23, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 935};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_sig_text, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_pos, __pyx_mstate->__pyx_n_u_tokens, __pyx_mstate->__pyx_n_u_sig_args, __pyx_mstate->__pyx_n_u_var_arg, __pyx_mstate->__pyx_n_u_var_kw, __pyx_mstate->__pyx_n_u_defaults, __pyx_mstate->__pyx_n_u_get_token, __pyx_mstate->__pyx_n_u_get_token, __pyx_mstate->__pyx_n_u_var_arg_type, __pyx_mstate->__pyx_n_u_tok_type, __pyx_mstate->__pyx_n_u_tok_string, __pyx_mstate->__pyx_n_u_var_name, __pyx_mstate->__pyx_n_u_nest_type, __pyx_mstate->__pyx_n_u_unnest_type, __pyx_mstate->__pyx_n_u_nest_count, __pyx_mstate->__pyx_n_u_start_pos, __pyx_mstate->__pyx_n_u_end_pos, __pyx_mstate->__pyx_n_u_parts, __pyx_mstate->__pyx_n_u_s_2, __pyx_mstate->__pyx_n_u_e, __pyx_mstate->__pyx_n_u_default_expr};
    __pyx_mstate_global->__pyx_codeobj_tab[54] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_parse_signature_2, __pyx_mstate->__pyx_kp_b_iso88591_1_X_Qhay_q_a_Q_q_q_y_9Cxq_9Cxt5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[54])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1013};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_string_2, __pyx_mstate->__pyx_n_u_start_pos, __pyx_mstate->__pyx_n_u_end_pos, __pyx_mstate->__pyx_n_u_srow, __pyx_mstate->__pyx_n_u_scol, __pyx_mstate->__pyx_n_u_erow, __pyx_mstate->__pyx_n_u_ecol, __pyx_mstate->__pyx_n_u_lines, __pyx_mstate->__pyx_n_u_parts};
    __pyx_mstate_global->__pyx_codeobj_tab[55] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_isolate_expression, __pyx_mstate->__pyx_kp_b_iso88591_1_A_A_F_Qa_uCq_uAU_5_AU_5_at1Ba, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[55])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 14, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1036};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_sys, __pyx_mstate->__pyx_n_u_optparse, __pyx_mstate->__pyx_n_u_os, __pyx_mstate->__pyx_n_u_parser, __pyx_mstate->__pyx_n_u_options, __pyx_mstate->__pyx_n_u_template_name_2, __pyx_mstate->__pyx_n_u_vars, __pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_template_content, __pyx_mstate->__pyx_n_u_f, __pyx_mstate->__pyx_n_u_template, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[56] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_Cython_Tempita__tempita_py, __pyx_mstate->__pyx_n_u_fill_command, __pyx_mstate->__pyx_kp_b_iso88591_uCq_s_q_X_a_Q_a_Q_Q_Q_Q_q_Q_WF, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[56])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0 && __Pyx_init_tpflags_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* PyFrozenDict.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *builtins = PyEval_GetBuiltins(); // borrowed
      if (likely(builtins)) {
          PyObject *type_name = PyUnicode_FromStringAndSize("frozendict", sizeof("frozendict")-1);
          if (likely(type_name)) {
              PyObject *frozendict_type = PyObject_GetItem(builtins, type_name);
              Py_DECREF(type_name);
              if (!frozendict_type && PyErr_ExceptionMatches(PyExc_KeyError)) {
                  PyErr_Clear();
                  frozendict_type = (PyObject*) &PyDict_Type;
                  Py_INCREF(frozendict_type);
              }
              __pyx_mstate_global->__Pyx_PyFrozenDictType = frozendict_type;
          }
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* AssertionsEnabled.init */
  if (likely(__Pyx_init_assertions_enabled() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_after_shared_utility ### */

static int __Pyx_InitAfterSharedUtility(void) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  /* CythonFunctionPerModule.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* FastTypeChecks (used by GivenExceptionMatches) */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
#endif

/* PyErrFetchRestore (used by GivenExceptionMatches) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* GivenExceptionMatches (used by PyErrExceptionMatches) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyObjectGetAttrStr (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* CopyObjectArray (used by TupleOrListFromArrayImpl) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
#endif

/* TupleOrListFromArrayImpl (used by TupleFromArray) */
#if !(PY_VERSION_HEX >= 0x030F0000 && !CYTHON_COMPILING_IN_LIMITED_API)
CYTHON_UNUSED static PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n) {
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    PyObject *res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    #if CYTHON_COMPILING_IN_CPYTHON
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    #else
    Py_ssize_t i;
    for (i = 0; i < n; i++) {
        Py_INCREF(src[i]);
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
    }
    #endif
    return res;
}
#endif

/* PyObjectCompare (used by UnicodeEquals) */
#ifndef __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
#define __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
static CYTHON_INLINE int __Pyx_PyObject_CompareStrStrBoolEq(PyObject* s1, PyObject* s2) {
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    int result = PyUnicode_Equal(s1, s2);
    #if !CYTHON_COMPILING_IN_CPYTHON
    if (unlikely(result == -1)) return -1;
    #endif
    if (result == 0) goto __pyx_return_false; else goto __pyx_return_true;
    #else
    int result = PyUnicode_Compare(s1, s2);
    if (unlikely((result == -1) && PyErr_Occurred())) return -1;
    if (result == 0) goto __pyx_return_true; else goto __pyx_return_false;
    #endif
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_str_str(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op1 == Py_None)) {
        if (op2 == Py_None) goto __pyx_return_true; else goto __pyx_return_false;
    }
    if (unlikely(op2 == Py_None)) {
        if (op1 == Py_None) goto __pyx_return_true; else goto __pyx_return_false;
    }
    
    if (likely(op1 != Py_None)) {
        if (op1 == op2) goto __pyx_return_true;
        if (likely(op2 != Py_None)) {
            return __Pyx_PyObject_CompareStrStrBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* fastcall */
#if CYTHON_VECTORCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* HasAttr */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!PyUnicode_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_PyObject_GetAttrStrNoError(o, n);
    if (!r) {
        return (unlikely(PyErr_Occurred())) ? -1 : 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}
#endif

/* PyObjectCall (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !(CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY)
  #if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(nargsf);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
            return PyObject_Vectorcall(func, args, nargsf, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, nargsf, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #elif CYTHON_COMPILING_IN_PYPY
    return PyObject_VectorcallDict(func, args, (size_t) nargs, kwargs);
    #else
    return PyObject_VectorcallDict(func, args, nargsf, kwargs);
    #endif
}

/* ParseKeywords */
static int __Pyx_ParseKeywords(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    if (CYTHON_VECTORCALL && likely(PyTuple_Check(kwds)))
        return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
    else if (kwds2)
        return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name);
    else
        return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
}

/* PyObjectFastCallMethod */
#if !CYTHON_VECTORCALL
static PyObject *__Pyx_PyObject_FastCallMethod(PyObject *name, PyObject *const *args, size_t nargsf) {
    PyObject *result;
    switch (__Pyx_PyVectorcall_NARGS(nargsf)) {
        case 1:
            return PyObject_CallMethodObjArgs(args[0], name, NULL);
        case 2:
            return PyObject_CallMethodObjArgs(args[0], name, args[1], NULL);
        case 3:
            return PyObject_CallMethodObjArgs(args[0], name, args[1], args[2], NULL);
        case 4:
            return PyObject_CallMethodObjArgs(args[0], name, args[1], args[2], args[3], NULL);
        case 5:
            return PyObject_CallMethodObjArgs(args[0], name, args[1], args[2], args[3], args[4], NULL);
    }
    PyObject *attr = PyObject_GetAttr(args[0], name);
    if (unlikely(!attr))
        return NULL;
    result = __Pyx_PyObject_FastCall(attr, args+1, nargsf - 1);
    Py_DECREF(attr);
    return result;
}
#endif

/* PyObjectSetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* PyUnicode_Unicode */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj) {
    if (unlikely(obj == Py_None))
        obj = __pyx_mstate_global->__pyx_kp_u_None;
    return __Pyx_NewRef(obj);
}

/* PyFrozenDict (used by GetItemInt) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE PyObject* __Pyx__PyFrozenDict_New(PyObject* frozendict_type, PyObject* it) {
    return PyObject_CallFunctionObjArgs(frozendict_type, it, NULL);
}
#endif

/* GettItemInt_wraparound (used by GetItemInt) */
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
static int __Pyx_GetItemInt_wraparound(PyObject *o, PySequenceMethods *sm, Py_ssize_t *i) {
    assert(*i < 0);
    if (likely(sm->sq_length)) {
        Py_ssize_t l = sm->sq_length(o);
        if (likely(l >= 0)) {
            *i += l;
        } else {
            if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                return -1;
            PyErr_Clear();
        }
    }
    return 0;
}
#endif

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!j)) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static PyObject *__Pyx_GetItemInt_Generic_size(PyObject *o, Py_ssize_t i) {
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_AVOID_BORROWED_REFS
    CYTHON_UNUSED_VAR(boundscheck);
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        Py_ssize_t size = __Pyx_PyList_GET_SIZE(o);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(size < 0)) return NULL;
        #endif
        wrapped_i += size;
    }
    return __Pyx_PyList_GetItemRef(o, wrapped_i);
#elif CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS
    Py_ssize_t wrapped_i = i;
    Py_ssize_t size = (wraparound | boundscheck) ? PyList_GET_SIZE(o) : -1;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += size;
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, size))) {
        return __Pyx_PyList_GET_ITEM_REF(o, wrapped_i, unsafe_shared);
    }
    return __Pyx_GetItemInt_Generic_size(o, i);
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_AVOID_BORROWED_REFS
    CYTHON_UNUSED_VAR(boundscheck);
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(o);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(size < 0)) return NULL;
        #endif
        wrapped_i += size;
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_COMPILING_IN_LIMITED_API
    return PySequence_ITEM(o, wrapped_i);
    #else
    if (unlikely(wrapped_i < 0)) {
        PyErr_SetString(PyExc_IndexError, "tuple index out of range");
        return NULL;
    }
    return PySequence_GetItem(o, wrapped_i);
    #endif
#elif CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS
    Py_ssize_t wrapped_i = i;
    Py_ssize_t size = (wraparound | boundscheck) ? PyTuple_GET_SIZE(o) : -1;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += size;
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, size))) {
        return __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic_size(o, i);
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast_mapping(PyObject *o, binaryfunc getitem, Py_ssize_t i) {
    PyObject *r, *key = PyLong_FromSsize_t(i);
    if (unlikely(!key)) return NULL;
    r = getitem(o, key);
    Py_DECREF(key);
    return r;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE
    if (PyList_CheckExact(o)) {
        return __Pyx_GetItemInt_List_Fast(o, i, wraparound, boundscheck, unsafe_shared);
    } else
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (PyTuple_CheckExact(o)) {
        return __Pyx_GetItemInt_Tuple_Fast(o, i, wraparound, boundscheck, unsafe_shared);
    } else
    #endif
#else
    if ((!wraparound || i >= 0) & PyList_CheckExact(o)) {
        return boundscheck ? __Pyx_PyList_GetItemRef(o, i) : __Pyx_PyList_GET_ITEM_REF(o, i, unsafe_shared);
    } else
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    if (PyDict_CheckExact(o)) {
        return __Pyx_GetItemInt_Fast_mapping(o, PyDict_Type.tp_as_mapping->mp_subscript, i);
    #if defined(PyFrozenDict_CheckExact)
    } else if (PyFrozenDict_CheckExact(o)) {
        return __Pyx_GetItemInt_Fast_mapping(o, PyFrozenDict_Type.tp_as_mapping->mp_subscript, i);
    #endif
    } else
    {
        PyTypeObject *obj_type = Py_TYPE(o);
        int seq_or_mapping = __Pyx_PyType_GetFlags(obj_type) & (Py_TPFLAGS_SEQUENCE|Py_TPFLAGS_MAPPING);
        if (seq_or_mapping != Py_TPFLAGS_SEQUENCE) {
            PyMappingMethods *mm = obj_type->tp_as_mapping;
            if (mm && mm->mp_subscript)
                return __Pyx_GetItemInt_Fast_mapping(o, mm->mp_subscript, i);
        }
        PySequenceMethods *sm = obj_type->tp_as_sequence;
        if (likely(sm && sm->sq_item)) {
            if (wraparound && (i < 0) && unlikely(__Pyx_GetItemInt_wraparound(o, sm, &i) == -1))
                return NULL;
            return sm->sq_item(o, i);
        }
        if (seq_or_mapping == Py_TPFLAGS_SEQUENCE) {
            PyMappingMethods *mm = obj_type->tp_as_mapping;
            if (likely(mm && mm->mp_subscript))
                return __Pyx_GetItemInt_Fast_mapping(o, mm->mp_subscript, i);
        }
    }
#else
    if (!PyMapping_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_GetItemInt_Generic_size(o, i);
}

/* PyObjectFormatAndDecref */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result;
    if (unlikely(!s)) return NULL;
    result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* UnicodeConcatInPlace */
# if CYTHON_COMPILING_IN_CPYTHON
static int
__Pyx_unicode_modifiable(PyObject *unicode, int unsafe_shared)
{
    if (!__Pyx_IS_UNIQUELY_REFERENCED(unicode, unsafe_shared))
        return 0;
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030F0000
    if (PyUnstable_Unicode_GET_CACHED_HASH(unicode) != -1)
        return 0;
#endif
    if (!PyUnicode_CheckExact(unicode))
        return 0;
    if (PyUnicode_CHECK_INTERNED(unicode))
        return 0;
    return 1;
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right, int unsafe_shared
        #if CYTHON_REFNANNY
        , void* __pyx_refnanny
        #endif
    ) {
    PyObject *left = *p_left;
    Py_ssize_t left_len, right_len, new_len;
    if (unlikely(__Pyx_PyUnicode_READY(left) == -1))
        return NULL;
    if (unlikely(__Pyx_PyUnicode_READY(right) == -1))
        return NULL;
    left_len = PyUnicode_GET_LENGTH(left);
    if (left_len == 0) {
        Py_INCREF(right);
        return right;
    }
    right_len = PyUnicode_GET_LENGTH(right);
    if (right_len == 0) {
        Py_INCREF(left);
        return left;
    }
    if (unlikely(left_len > PY_SSIZE_T_MAX - right_len)) {
        PyErr_SetString(PyExc_OverflowError,
                        "strings are too large to concat");
        return NULL;
    }
    new_len = left_len + right_len;
    if (left != right
            && __Pyx_unicode_modifiable(left, unsafe_shared)
            && PyUnicode_CheckExact(right)
            && PyUnicode_KIND(right) <= PyUnicode_KIND(left)
            && !(PyUnicode_IS_ASCII(left) && !PyUnicode_IS_ASCII(right))) {
        int ret;
        __Pyx_GIVEREF(*p_left);
        ret = PyUnicode_Resize(p_left, new_len);
        __Pyx_GOTREF(*p_left);
        if (unlikely(ret != 0))
            return NULL;
        #if PY_VERSION_HEX >= 0x030d0000
        if (unlikely(PyUnicode_CopyCharacters(*p_left, left_len, right, 0, right_len) < 0)) return NULL;
        #else
        _PyUnicode_FastCopyCharacters(*p_left, left_len, right, 0, right_len);
        #endif
        __Pyx_INCREF(*p_left);
        __Pyx_GIVEREF(*p_left);
        return *p_left;
    } else {
        return __Pyx_PyUnicode_Concat(left, right);
    }
  }
#endif

/* IgnoreException (used by GetModuleGlobalName) */
static CYTHON_INLINE int __Pyx_IgnoreGivenException(PyObject *given_exception, PyObject *ignorable_exception) {
    if (PyErr_GivenExceptionMatches(given_exception ? given_exception : PyErr_Occurred(), ignorable_exception)) {
        PyErr_Clear();
        return 1;
    }
    return 0;
}

/* PyDictVersioning (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    if (!__Pyx_IgnoreException(PyExc_Exception)) {
        return NULL; // BaseException
    }
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) {
        if (!__Pyx_IgnoreException(PyExc_Exception)) {
            return NULL; // BaseException
        }
    }
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyObject *exc = PyErr_Occurred();
    if (unlikely(exc) && !__Pyx_IgnoreGivenException(exc, PyExc_Exception)) {
        return NULL; // BaseException
    }
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyObjectVectorcallKwds (used by PyObjectVectorcallMethodKwds) */
#if CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_CheckVectorcallKwarg(PyObject *kwnames, Py_ssize_t i) {
    PyObject *key = __Pyx_PyTuple_GET_ITEM(kwnames, i);
#if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!key)) return -1;
#endif
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return 0;
}
#else
CYTHON_UNUSED static PyObject *__Pyx_MakeKwargDict(PyObject **keys, PyObject **values, Py_ssize_t n) {
    PyObject *out = PyDict_New();
    if (unlikely(!out)) return NULL;
    for (Py_ssize_t i=0; i<n; ++i) {
        if (unlikely(PyDict_SetItem(out, keys[i], values[i]) < 0)) {
            Py_DECREF(out);
            return NULL;
        }
    }
    return out;
}
CYTHON_UNUSED static int __Pyx_CheckVectorcallKwarg(PyObject **kwnames, Py_ssize_t i) {
    PyObject *key = kwnames[i];
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return 0;
}
#endif

/* PyObjectVectorcallMethodKwds */
#if !CYTHON_VECTORCALL
static PyObject *__Pyx_Object_VectorcallMethodKwds(PyObject *name, PyObject *const *args, size_t nargsf, PyObject *kwnames) {
    PyObject *result;
    PyObject *obj = PyObject_GetAttr(args[0], name);
    if (unlikely(!obj))
        return NULL;
    result = __Pyx_Object_VectorcallKwds(obj, args+1, nargsf-1, kwnames);
    Py_DECREF(obj);
    return result;
}
#endif

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level) {
    return __Pyx__Import(name, imported_names, len_imported_names, qualname, __pyx_mstate_global->__pyx_d, level);
}

/* DictGetItem */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    if (unlikely(__Pyx_PyDict_GetItemRef(d, key, &value) == 0)) { // no value, no error
        if (unlikely(PyTuple_Check(key))) {
            PyObject* args = PyTuple_Pack(1, key);
            if (likely(args)) {
                PyErr_SetObject(PyExc_KeyError, args);
                Py_DECREF(args);
            }
        } else {
            PyErr_SetObject(PyExc_KeyError, key);
        }
    }
    return value;
}
#endif

/* GetTopmostException (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    PyObject *exc_value = exc_info->exc_value;
    if (exc_value == NULL || exc_value == Py_None) {
        *value = NULL;
        *type = NULL;
        *tb = NULL;
    } else {
        *value = exc_value;
        Py_INCREF(*value);
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        *tb = PyException_GetTraceback(exc_value);
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #endif
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    PyObject *tmp_value = exc_info->exc_value;
    exc_info->exc_value = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
  #else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
  #endif
}
#endif

/* FormatTypeName (used by RaiseErrorWithObjectType) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__2);
    }
    goto done;
}
#endif

/* RaiseErrorWithObjectType (used by SliceObject) */
static void __Pyx_RaiseErrorWithType(PyObject* exc_type, const char* message, PyTypeObject *type_obj) {
    __Pyx_TypeName type_name = __Pyx_PyType_GetFullyQualifiedName(type_obj);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
    if (unlikely(!type_name)) return;
    #endif
    PyErr_Format(exc_type, message, type_name);
    __Pyx_DECREF_TypeName(type_name);
}

/* SliceObject */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_subscript))
#else
    if ((1))
#endif
    {
        PyObject* result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyLong_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyLong_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_subscript(obj, py_slice);
#else
        result = PyObject_GetItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    } else {
        __Pyx_RaiseTypeErrorWithObjectType(
            "'" __Pyx_FMT_TYPENAME "' object is unsliceable", obj);
    }
bad:
    return NULL;
}

/* PyObjectLookupSpecial */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else if (with_error) {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#endif

/* GetException */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type = NULL, *local_value, *local_tb = NULL;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if PY_VERSION_HEX >= 0x030C0000
    local_value = tstate->current_exception;
    tstate->current_exception = 0;
  #else
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
  #endif
#elif __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    local_value = PyErr_GetRaisedException();
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    if (likely(local_value)) {
        local_type = (PyObject*) Py_TYPE(local_value);
        Py_INCREF(local_type);
        local_tb = PyException_GetTraceback(local_value);
    }
#else
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
#endif // __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
      #if PY_VERSION_HEX >= 0x030B00a4
        tmp_value = exc_info->exc_value;
        exc_info->exc_value = local_value;
        tmp_type = NULL;
        tmp_tb = NULL;
        Py_XDECREF(local_type);
        Py_XDECREF(local_tb);
      #else
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
      #endif
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#elif __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    PyErr_SetHandledException(local_value);
    Py_XDECREF(local_value);
    Py_XDECREF(local_type);
    Py_XDECREF(local_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
#endif
}

/* RaiseUnboundLocalError */
static void __Pyx_RaiseUnboundLocalError(const char *varname) {
    PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
}

/* PyObjectCallOneArg */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyUnicode_Substring */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Substring(
            PyObject* text, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length;
    if (unlikely(__Pyx_PyUnicode_READY(text) == -1)) return NULL;
    length = __Pyx_PyUnicode_GET_LENGTH(text);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(length < 0)) return NULL;
    #endif
    if (start < 0) {
        start += length;
        if (start < 0)
            start = 0;
    }
    if (stop < 0)
        stop += length;
    else if (stop > length)
        stop = length;
    if (stop <= start)
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_unicode);
    if (start == 0 && stop == length)
        return __Pyx_NewRef(text);
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyUnicode_Substring(text, start, stop);
#else
    return PyUnicode_FromKindAndData(PyUnicode_KIND(text),
        PyUnicode_1BYTE_DATA(text) + start*PyUnicode_KIND(text), stop-start);
#endif
}

/* RaiseTooManyValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* RaiseNeedMoreValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
    PyObject* exc_type;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    exc_type = __Pyx_PyErr_CurrentExceptionType();
    if (unlikely(exc_type)) {
        if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
            return -1;
        __Pyx_PyErr_Clear();
        return 0;
    }
    return 0;
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    }
    return __Pyx_IterFinish();
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, args, 2);
        }
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *result = NULL;
        PyObject *args = PyTuple_New(2);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
        return result;
    }
#endif
    {
        PyObject *args[4] = {NULL, self, arg1, arg2};
        return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
    }
}

/* PyObjectCall2Args (used by CallUnboundCMethod1) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args[3] = {NULL, arg1, arg2};
    return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* CallUnboundCMethod1 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) {
    int was_initialized =  __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        int flag = cfunc->flag;
        if (flag == METH_O) {
            return __Pyx_CallCFunction(cfunc, self, arg);
        } else if (flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, &arg, 1);
        } else if (flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, &arg, 1, NULL);
        }
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod1(&tmp_cfunc, self, arg);
    }
#endif
    PyObject* result = __Pyx__CallUnboundCMethod1(cfunc, self, arg);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){
    PyObject *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        PyObject *args = PyTuple_New(1);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 0, arg);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
    } else
#endif
    {
        result = __Pyx_PyObject_Call2Args(cfunc->method, self, arg);
    }
    return result;
}

/* py_dict_pop */
static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop)
    PyObject *value;
    if (PyDict_Pop(d, key, &value) == 0) {
        if (default_value) {
            Py_INCREF(default_value);
        } else {
            PyErr_SetObject(PyExc_KeyError, key);
        }
        value = default_value;
    }
    return value;
#elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
    return _PyDict_Pop(d, key, default_value);
#else
    if (default_value) {
        return __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, d, key, default_value);
    } else {
        return __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, d, key);
    }
#endif
}

/* PyObjectCallMethod0 (used by dict_iter_common) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || !CYTHON_COMPILING_IN_LIMITED_API)
    return PyObject_VectorcallMethod(method_name, &obj, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_CallMethodObjArgs(obj, method_name, NULL);
#else
    return PyObject_CallMethodNoArgs(obj, method_name);
#endif
}

/* RaiseNoneIterError (used by UnpackTupleError) */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError (used by UnpackTuple2) */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else {
      Py_ssize_t size = __Pyx_PyTuple_GET_SIZE(t);
 #if !CYTHON_ASSUME_SAFE_SIZE
      if (unlikely(size < 0)) return;
 #endif
      if (size < index) {
        __Pyx_RaiseNeedMoreValuesError(size);
      } else {
        __Pyx_RaiseTooManyValuesError(index);
      }
    }
}

/* UnpackTuple2 (used by dict_iter_common) */
static CYTHON_INLINE int __Pyx_unpack_tuple2(
        PyObject* tuple, PyObject** value1, PyObject** value2, int is_tuple, int has_known_size, int decref_tuple) {
    if (likely(is_tuple || PyTuple_Check(tuple))) {
        Py_ssize_t size;
        if (has_known_size) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        size = __Pyx_PyTuple_GET_SIZE(tuple);
        if (likely(size == 2)) {
            return __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple);
        }
        if (size >= 0) {
            __Pyx_UnpackTupleError(tuple, 2);
        }
        return -1;
    } else {
        return __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple);
    }
}
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
    value1 = __Pyx_PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = __Pyx_PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_AVOID_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = __Pyx_PyObject_GetIterNextFunc(iter);
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter_common (used by dict_iter) */
static PyObject *__Pyx_dict_call_to_get_iterable(PyObject* iterable, PyObject* method_name) {
    PyObject* iter;
    iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
    if (!iterable)
        return NULL;
#if !CYTHON_AVOID_BORROWED_REFS
    if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
        return iterable;
#endif
    iter = PyObject_GetIter(iterable);
    Py_DECREF(iterable);
    return iter;
}
#if !CYTHON_AVOID_BORROWED_REFS
static CYTHON_INLINE int __Pyx_dict_iter_next_source_is_dict(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem) {
    PyObject *key, *value;
    if (unlikely(orig_length != PyDict_Size(iter_obj))) {
        PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
        return -1;
    }
    if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
        return 0;
    }
    if (pitem) {
        PyObject* tuple = PyTuple_New(2);
        if (unlikely(!tuple)) {
            return -1;
        }
        Py_INCREF(key);
        Py_INCREF(value);
        #if CYTHON_ASSUME_SAFE_MACROS
        PyTuple_SET_ITEM(tuple, 0, key);
        PyTuple_SET_ITEM(tuple, 1, value);
        #else
        if (unlikely(PyTuple_SetItem(tuple, 0, key) < 0)) {
            Py_DECREF(value);
            Py_DECREF(tuple);
            return -1;
        }
        if (unlikely(PyTuple_SetItem(tuple, 1, value) < 0)) {
            Py_DECREF(tuple);
            return -1;
        }
        #endif
        *pitem = tuple;
    } else {
        if (pkey) {
            Py_INCREF(key);
            *pkey = key;
        }
        if (pvalue) {
            Py_INCREF(value);
            *pvalue = value;
        }
    }
    return 1;
}
#endif
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_AVOID_BORROWED_REFS
    if (source_is_dict) {
        int result;
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_BEGIN_CRITICAL_SECTION(iter_obj);
#endif
        result = __Pyx_dict_iter_next_source_is_dict(iter_obj, orig_length, ppos, pkey, pvalue, pitem);
#if PY_VERSION_HEX >= 0x030d0000 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_END_CRITICAL_SECTION();
#endif
        return result;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t tuple_size = __Pyx_PyTuple_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(tuple_size < 0)) return -1;
        #endif
        if (unlikely(pos >= tuple_size)) return 0;
        *ppos = pos + 1;
        #if CYTHON_ASSUME_SAFE_MACROS
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        #else
        next_item = PyTuple_GetItem(iter_obj, pos);
        if (unlikely(!next_item)) return -1;
        #endif
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        Py_ssize_t list_size = __Pyx_PyList_GET_SIZE(iter_obj);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(list_size < 0)) return -1;
        #endif
        if (unlikely(pos >= list_size)) return 0;
        *ppos = pos + 1;
        next_item = __Pyx_PyList_GET_ITEM_REF(iter_obj, pos, __Pyx_ReferenceSharing_OwnStrongReference);
        if (unlikely(!next_item)) return -1;
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* dict_iter */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(__Pyx_PyAnyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
#if !CYTHON_AVOID_BORROWED_REFS
    if (is_dict) {
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
    }
#endif
    *p_orig_length = 0;
    if (method_name) {
        return __Pyx_dict_call_to_get_iterable(iterable, method_name);
    } else {
        return PyObject_GetIter(iterable);
    }
}

/* ListAppendAndDecrefInternal (used by ListAppend) */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE void __Pyx__ListComp_AppendAndDecref(PyObject* list, Py_ssize_t len, PyObject* x) {
    PyList_SET_ITEM(list, len, x);
    Py_SET_SIZE(list, len + 1);
}
#endif

/* ListAppend (used by append) */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        __Pyx__ListComp_AppendAndDecref(list, len, x);
        return 0;
    }
    return PyList_Append(list, x);
}
#endif

/* PyObjectCallMethod1 (used by append) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || !CYTHON_COMPILING_IN_LIMITED_API)
    PyObject *args[2] = {obj, arg};
    return PyObject_VectorcallMethod(method_name, args, 2 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_CallMethodObjArgs(obj, method_name, arg, NULL);
#else
    return PyObject_CallMethodOneArg(obj, method_name, arg);
#endif
}

/* append */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
    if (likely(PyList_CheckExact(L))) {
        if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1;
    } else {
        PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_mstate_global->__pyx_n_u_append, x);
        if (unlikely(!retval))
            return -1;
        Py_DECREF(retval);
    }
    return 0;
}

/* PyObjectCompare */
#ifndef __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
#define __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
static CYTHON_INLINE int __Pyx_PyObject_CompareStrStrBoolEq(PyObject* s1, PyObject* s2) {
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    int result = PyUnicode_Equal(s1, s2);
    #if !CYTHON_COMPILING_IN_CPYTHON
    if (unlikely(result == -1)) return -1;
    #endif
    if (result == 0) goto __pyx_return_false; else goto __pyx_return_true;
    #else
    int result = PyUnicode_Compare(s1, s2);
    if (unlikely((result == -1) && PyErr_Occurred())) return -1;
    if (result == 0) goto __pyx_return_true; else goto __pyx_return_false;
    #endif
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_object_str(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op2 == Py_None)) {
        if (op1 == Py_None) goto __pyx_return_true; else goto __pyx_richcmp;
    }
    if (PyFloat_CheckExact(op1)) {
        goto __pyx_richcmp;
    }
    if (PyLong_CheckExact(op1)) {
        if (op1 == op2) goto __pyx_return_true;
        goto __pyx_richcmp;
    }
    
    if (likely(PyUnicode_CheckExact(op1))) {
        if (op1 == op2) goto __pyx_return_true;
        if (likely(op2 != Py_None)) {
            return __Pyx_PyObject_CompareStrStrBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_value = exc_info->exc_value;
    exc_info->exc_value = *value;
    if (tmp_value == NULL || tmp_value == Py_None) {
        Py_XDECREF(tmp_value);
        tmp_value = NULL;
        tmp_type = NULL;
        tmp_tb = NULL;
    } else {
        tmp_type = (PyObject*) Py_TYPE(tmp_value);
        Py_INCREF(tmp_type);
        #if CYTHON_COMPILING_IN_CPYTHON
        tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
        Py_XINCREF(tmp_tb);
        #else
        tmp_tb = PyException_GetTraceback(tmp_value);
        #endif
    }
  #elif CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
  #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
  #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* GetAttr3 */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    int res = PyObject_GetOptionalAttr(o, n, &r);
    return (res != 0) ? r : __Pyx_NewRef(d);
#else
  #if CYTHON_USE_TYPE_SLOTS
    if (likely(PyUnicode_Check(n))) {
        r = __Pyx_PyObject_GetAttrStrNoError(o, n);
        if (unlikely(!r) && likely(!PyErr_Occurred())) {
            r = __Pyx_NewRef(d);
        }
        return r;
    }
  #endif
    r = PyObject_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
#endif
}

/* ExceptionGetProperty */
static CYTHON_INLINE PyObject* __Pyx_PyException_get_args(PyObject *exception) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyTypeObject *exc_type = Py_TYPE(exception);
    if (likely(exc_type == (PyTypeObject*) &PyExc_Exception)) {
        PyObject *result;
        __Pyx_BEGIN_CRITICAL_SECTION(exception);
        result = __Pyx_NewRef(((PyBaseExceptionObject*) exception)->args);
        __Pyx_END_CRITICAL_SECTION();
        return result;
    }
#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030c0000
    PyTypeObject *exc_type = Py_TYPE(exception);
    if (likely(exc_type == (PyTypeObject*) &PyExc_Exception)) {
        return PyException_GetArgs(exception);
    }
#endif
    return __Pyx_PyObject_GetAttrStr(exception, __pyx_mstate_global->__pyx_n_u_args);
}

/* ExceptionSetProperty */
static CYTHON_INLINE int __Pyx_PyException_set_args(PyObject *exception, PyObject *value) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyTypeObject *exc_type = Py_TYPE(exception);
    if (likely(exc_type == (PyTypeObject*) &PyExc_Exception)) {
        PyObject *orig_value;
        Py_INCREF(value);
        __Pyx_BEGIN_CRITICAL_SECTION(exception);
        orig_value = ((PyBaseExceptionObject*) exception)->args;
        ((PyBaseExceptionObject*) exception)->args = value;
        __Pyx_END_CRITICAL_SECTION();
        Py_XDECREF(orig_value);
        return 0;
    }
#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030c0000
    PyTypeObject *exc_type = Py_TYPE(exception);
    if (likely(exc_type == (PyTypeObject*) &PyExc_Exception)) {
        PyException_SetArgs(exception, value);
        return 0;
    }
#endif
    return __Pyx_PyObject_SetAttrStr(exception, __pyx_mstate_global->__pyx_n_u_args, value);
}

/* PyExec */
static CYTHON_INLINE PyObject* __Pyx_PyExec2(PyObject* o, PyObject* globals) {
    return __Pyx_PyExec3(o, globals, NULL);
}
static PyObject* __Pyx_PyExec3(PyObject* o, PyObject* globals, PyObject* locals) {
    PyObject* result;
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyObject* s = 0;
    char *code = 0;
#endif
    if (!globals || globals == Py_None) {
        globals = __pyx_mstate_global->__pyx_d;
    }
#if !CYTHON_COMPILING_IN_LIMITED_API
    else if (unlikely(!PyDict_Check(globals))) {
        __Pyx_RaiseTypeErrorWithObjectType(
            "exec() arg 2 must be a dict, not " __Pyx_FMT_TYPENAME, globals);
        goto bad;
    }
#endif
    if (!locals || locals == Py_None) {
        locals = globals;
    }
#if !CYTHON_COMPILING_IN_LIMITED_API
    if (__Pyx_PyDict_GetItemStr(globals, __pyx_mstate_global->__pyx_n_u_builtins) == NULL) {
        if (unlikely(PyDict_SetItem(globals, __pyx_mstate_global->__pyx_n_u_builtins, PyEval_GetBuiltins()) < 0))
            goto bad;
    }
    if (PyCode_Check(o)) {
        if (unlikely(__Pyx_PyCode_HasFreeVars((PyCodeObject *)o))) {
            PyErr_SetString(PyExc_TypeError,
                "code object passed to exec() may not contain free variables");
            goto bad;
        }
        #if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM < 0x07030400
        result = PyEval_EvalCode((PyCodeObject *)o, globals, locals);
        #else
        result = PyEval_EvalCode(o, globals, locals);
        #endif
    } else {
        PyCompilerFlags cf;
        cf.cf_flags = 0;
        cf.cf_feature_version = PY_MINOR_VERSION;
        if (PyUnicode_Check(o)) {
            cf.cf_flags = PyCF_SOURCE_IS_UTF8;
            s = PyUnicode_AsUTF8String(o);
            if (unlikely(!s)) goto bad;
            o = s;
        } else if (unlikely(!PyBytes_Check(o))) {
            __Pyx_RaiseTypeErrorWithObjectType(
                "exec: arg 1 must be string, bytes or code object, got " __Pyx_FMT_TYPENAME, o);
            goto bad;
        }
        code = PyBytes_AS_STRING(o);
        if (PyEval_MergeCompilerFlags(&cf)) {
            result = PyRun_StringFlags(code, Py_file_input, globals, locals, &cf);
        } else {
            result = PyRun_String(code, Py_file_input, globals, locals);
        }
        Py_XDECREF(s);
    }
    return result;
bad:
    Py_XDECREF(s);
    return 0;
#else // CYTHON_COMPILING_IN_LIMITED_API
    {
        PyObject *builtins, *exec, *exec_str;
        builtins = PyEval_GetBuiltins();
        if (!builtins) return NULL;
        exec_str = PyUnicode_FromStringAndSize("exec", 4);
        if (!exec_str) return NULL;
        exec = PyObject_GetItem(builtins, exec_str);
        Py_DECREF(exec_str);
        if (!exec) return NULL;
        result = PyObject_CallFunctionObjArgs(exec, o, globals, locals, NULL);
        Py_DECREF(exec);
        return result;
    }
#endif
}

/* dict_getitem_default */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
    PyObject* value;
#if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (unlikely(PyErr_Occurred()))
            return NULL;
        value = default_value;
    }
    Py_INCREF(value);
    if ((1));
#else
    if (PyBytes_CheckExact(key) || PyUnicode_CheckExact(key) || PyLong_CheckExact(key)) {
        value = PyDict_GetItem(d, key);
        if (unlikely(!value)) {
            value = default_value;
        }
        Py_INCREF(value);
    }
#endif
    else {
        if (default_value == Py_None)
            value = __Pyx_CallUnboundCMethod1(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_get, d, key);
        else
            value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_get, d, key, default_value);
    }
    return value;
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) {
    PyObject *runerr = NULL;
    Py_ssize_t key_value;
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 1, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        PyErr_Clear();
        __Pyx_RaiseErrorWithObjectType(
            PyExc_IndexError,
            "cannot fit '" __Pyx_FMT_TYPENAME "' into an index-sized integer",
            index);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
    if (likely(PyType_Check(obj))) {
        if ((PyTypeObject*)obj == &PyType_Type) {
            return Py_GenericAlias(obj, key);
        }
        PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_mstate_global->__pyx_n_u_class_getitem);
        if (!meth) {
            if (PyErr_Occurred()) {
                return NULL;
            }
        } else {
            PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
            Py_DECREF(meth);
            return result;
        }
    }
    __Pyx_RaiseTypeErrorWithObjectType(
        "'" __Pyx_FMT_TYPENAME "' object is not subscriptable", obj);
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
    PyTypeObject *tp = Py_TYPE(obj);
    PyMappingMethods *mm = tp->tp_as_mapping;
    PySequenceMethods *sm = tp->tp_as_sequence;
    if (likely(mm && mm->mp_subscript)) {
        return mm->mp_subscript(obj, key);
    }
    if (likely(sm && sm->sq_item)) {
        return __Pyx_PyObject_GetIndex(obj, key);
    }
    return __Pyx_PyObject_GetItem_Slow(obj, key);
}
#endif

/* PyObjectCallNoArg */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* ListCompAppendAndDecref */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE int __Pyx_ListComp_AppendAndDecref(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        __Pyx__ListComp_AppendAndDecref(list, len, x);
        return 0;
    }
    int result = PyList_Append(list, x);
    Py_DECREF(x);
    return result;
}
#else
static CYTHON_INLINE int __Pyx_ListComp_AppendAndDecref(PyObject* list, PyObject* x) {
    int result = PyList_Append(list, x);
    Py_DECREF(x);
    return result;
}
#endif

/* pop_index */
static PyObject* __Pyx__PyObject_PopNewIndex(PyObject* L, PyObject* py_ix) {
    PyObject *r;
    if (unlikely(!py_ix)) return NULL;
    r = __Pyx__PyObject_PopIndex(L, py_ix);
    Py_DECREF(py_ix);
    return r;
}
static PyObject* __Pyx__PyObject_PopIndex(PyObject* L, PyObject* py_ix) {
    return __Pyx_PyObject_CallMethod1(L, __pyx_mstate_global->__pyx_n_u_pop, py_ix);
}
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static PyObject* __Pyx__PyList_PopIndex(PyObject* L, PyObject* py_ix, Py_ssize_t ix) {
    Py_ssize_t size = PyList_GET_SIZE(L);
    if (likely(size > (((PyListObject*)L)->allocated >> 1))) {
        Py_ssize_t cix = ix;
        if (cix < 0) {
            cix += size;
        }
        if (likely(__Pyx_is_valid_index(cix, size))) {
            PyObject* v = PyList_GET_ITEM(L, cix);
            Py_SET_SIZE(L, Py_SIZE(L) - 1);
            size -= 1;
            memmove(&PyList_GET_ITEM(L, cix), &PyList_GET_ITEM(L, cix+1), (size_t)(size-cix)*sizeof(PyObject*));
            return v;
        }
    }
    if (py_ix == Py_None) {
        return __Pyx__PyObject_PopNewIndex(L, PyLong_FromSsize_t(ix));
    } else {
        return __Pyx__PyObject_PopIndex(L, py_ix);
    }
}
#endif

/* RaiseErrorWithObjectType1 (used by RaiseUnexpectedTypeError) */
static void __Pyx_RaiseErrorWithType1(PyObject* exc_type, const char* message, const char *arg, PyTypeObject *type_obj) {
    __Pyx_TypeName type_name = __Pyx_PyType_GetFullyQualifiedName(type_obj);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
    if (unlikely(!type_name)) return;
    #endif
    PyErr_Format(exc_type, message, arg, type_name);
    __Pyx_DECREF_TypeName(type_name);
}

/* RaiseUnexpectedTypeError */
static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj) {
    __Pyx_RaiseTypeErrorWithObjectType1(
        "Expected %.42s, got " __Pyx_FMT_TYPENAME,
        expected, obj);
    return 0;
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op2);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        if (size == 2 && 8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
            a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
            if (!is_positive) a *= -1;
            goto calculate_long;
        } else if (size == 2 && 8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
            lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
            if (!is_positive) lla *= -1;
            goto calculate_long_long;
        } else
        if (size == 3 && 8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
            a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
            if (!is_positive) a *= -1;
            goto calculate_long;
        } else if (size == 3 && 8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
            lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
            if (!is_positive) lla *= -1;
            goto calculate_long_long;
        } else
        if (size == 4 && 8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
            a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
            if (!is_positive) a *= -1;
            goto calculate_long;
        } else if (size == 4 && 8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
            lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
            if (!is_positive) lla *= -1;
            goto calculate_long_long;
        } else
        {}
        return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a + b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla + llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_AddObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) + (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_AddObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_AddObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_AddObjC(op1, op2, inplace);
}
#endif

/* ArgTypeTest */
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, const char *name, int exact) {
    if (likely(Py_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None))))
        return 1;
    if (!exact && likely(type) && likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    __Pyx_ArgTypeError(obj, type, name, exact);
    return 0;
}

/* PyObjectCompare */
#ifndef __Pyx_DEFINED_PyObject_CompareFloatIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareFloatIntBoolEq
static int __Pyx_PyObject_CompareFloatIntBoolEq(PyObject *op1, PyObject *op2) {
    double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(float_op1 == -1. && PyErr_Occurred())) return -1;
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsCompact(op2)) {
        Py_ssize_t iop2 = __Pyx_PyLong_CompactValue(op2);
        if (float_op1 == ((double)iop2)) goto __pyx_return_true; else goto __pyx_return_false;
    }
    if (unlikely(!isfinite(float_op1))) {
        if (float_op1 == 0.0) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int sign2 = __Pyx_PyLong_Sign(op2);
        if (float_op1 >= 0.) {
            if (sign2 < 0) goto __pyx_return_false;
            if (float_op1 < (double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        } else {
            if (sign2 > 0) goto __pyx_return_false;
            if (float_op1 > -(double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        }
    }
    #else
    if (unlikely(!isfinite(float_op1))) {
        if (float_op1 == 0.0) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int overflow2;
        long iop2 = PyLong_AsLongAndOverflow(op2, &overflow2);
        if (likely(!overflow2)) {
            if ((long long) iop2 >= (1LL << 53)) {
                overflow2 = 1;
            } else if ((long long) iop2 <= - (1LL << 53)) {
                overflow2 = -1;
            } else {
                if (float_op1 == ((double) iop2)) goto __pyx_return_true; else goto __pyx_return_false;
            }
        }
        if (overflow2 > 0) {
            if (float_op1 < ((double) (1LL << 53))) goto __pyx_return_false;
        } else {
            if (float_op1 > - ((double) (1LL << 53))) goto __pyx_return_false;
        }
    }
    #endif
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#if CYTHON_USE_PYLONG_INTERNALS
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static int __Pyx_PyObject_CompareIntIntBoolEq(PyObject *op1, PyObject *op2) {
    Py_ssize_t cmp = __Pyx_PyLong_CompareSignAndSize(op1, op2);
    if (cmp == 0) {
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        if (size > 0) {
            const digit* digits1 = __Pyx_PyLong_Digits(op1);
            const digit* digits2 = __Pyx_PyLong_Digits(op2);
            if (size == 1) {
                cmp = (Py_ssize_t) digits1[0] - (Py_ssize_t) digits2[0];
            } else if ((size == 2) && (8 * sizeof(Py_ssize_t) >= 2 * PyLong_SHIFT)) {
                cmp = (Py_ssize_t) (((((size_t)digits1[1]) << PyLong_SHIFT) | (size_t)digits1[0])) - (Py_ssize_t) (((((size_t)digits2[1]) << PyLong_SHIFT) | (size_t)digits2[0]));
            } else {
                for (Py_ssize_t i=size-1; i >= 0 && !cmp; --i) {
                    cmp = (Py_ssize_t) digits1[i] - (Py_ssize_t) digits2[i];
                }
            }
        }
        if (cmp == 0) return 1;
        if (__Pyx_PyLong_IsNeg(op1)) cmp = -cmp;
    }
    return 0;
}
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static CYTHON_INLINE PyObject* __Pyx_PyObject_CompareIntIntEq(PyObject *op1, PyObject *op2) {
    int result = __Pyx_PyObject_CompareIntIntBoolEq(op1, op2);
    if (unlikely(result == -1)) return NULL;
    return __Pyx_NewRef(result ? Py_True : Py_False);
}
#endif
#else
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static int __Pyx_PyObject_CompareIntIntBoolEq(PyObject *op1, PyObject *op2) {
    int overflow1, overflow2;
    long long iop1 = PyLong_AsLongLongAndOverflow(op1, &overflow1);
    long long iop2 = PyLong_AsLongLongAndOverflow(op2, &overflow2);
    if (likely(!(overflow1 | overflow2))) {
        if (iop1 == iop2) goto __pyx_return_true; else goto __pyx_return_false;
    } else if (overflow1 != overflow2) {
        if (overflow1 == overflow2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_object_int(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op2 == Py_None)) {
        if (op1 == Py_None) goto __pyx_return_true; else goto __pyx_richcmp;
    }
    if (op1 == op2) goto __pyx_return_true;
    if (PyFloat_CheckExact(op1)) {
        if (likely(op2 != Py_None)) {
            return __Pyx_PyObject_CompareFloatIntBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if (likely(PyLong_CheckExact(op1))) {
        if (op1 == op2) goto __pyx_return_true;
        if (likely(op2 != Py_None)) {
            return __Pyx_PyObject_CompareIntIntBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* SetItemInt */
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) {
    int r;
    if (unlikely(!j)) return -1;
    r = PyObject_SetItem(o, j, v);
    Py_DECREF(j);
    return r;
}
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE int __Pyx_SetItemInt_Fast_mapping(PyObject *o, objobjargproc setitem, Py_ssize_t i, PyObject *value) {
    PyObject *key = PyLong_FromSsize_t(i);
    if (unlikely(!key)) return -1;
    int r = setitem(o, key, value);
    Py_DECREF(key);
    return r;
}
#endif
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v,
                                               int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE && !CYTHON_AVOID_BORROWED_REFS
    if (PyList_CheckExact(o)) {
        Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o));
        if ((CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared))) {
            Py_INCREF(v);
            return PyList_SetItem(o, n, v);
        } else if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))) {
            PyObject* old;
            Py_INCREF(v);
            old = PyList_GET_ITEM(o, n);
            PyList_SET_ITEM(o, n, v);
            Py_DECREF(old);
            return 0;
        }
    } else
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    if (PyDict_CheckExact(o)) {
        return __Pyx_SetItemInt_Fast_mapping(o, PyDict_Type.tp_as_mapping->mp_ass_subscript, i, v);
    } else
    {
        PyTypeObject *obj_type = Py_TYPE(o);
        int seq_or_mapping = __Pyx_PyType_GetFlags(obj_type) & (Py_TPFLAGS_SEQUENCE|Py_TPFLAGS_MAPPING);
        if (seq_or_mapping != Py_TPFLAGS_SEQUENCE) {
            PyMappingMethods *mm = obj_type->tp_as_mapping;
            if (mm && mm->mp_ass_subscript)
                return __Pyx_SetItemInt_Fast_mapping(o, mm->mp_ass_subscript, i, v);
        }
        PySequenceMethods *sm = obj_type->tp_as_sequence;
        if (likely(sm && sm->sq_ass_item)) {
            if (wraparound && (i < 0) && unlikely(__Pyx_GetItemInt_wraparound(o, sm, &i) == -1))
                return -1;
            return sm->sq_ass_item(o, i, v);
        }
        if (seq_or_mapping == Py_TPFLAGS_SEQUENCE) {
            PyMappingMethods *mm = obj_type->tp_as_mapping;
            if (likely(mm && mm->mp_ass_subscript))
                return __Pyx_SetItemInt_Fast_mapping(o, mm->mp_ass_subscript, i, v);
        }
    }
#else
    if (!PyMapping_Check(o)) {
        return PySequence_SetItem(o, i, v);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_SetItemInt_Generic(o, PyLong_FromSsize_t(i), v);
}

/* pyint_simplify */
static int __Pyx__PyInt_FromNumber(PyObject **number_var, const char *argname);
static CYTHON_INLINE int __Pyx_PyInt_FromNumber(PyObject **number_var, const char *argname, int accept_none) {
    PyObject *number = *number_var;
    if (likely((accept_none && number == Py_None) || PyLong_CheckExact(number))) {
        return 0;
    }
    return __Pyx__PyInt_FromNumber(number_var, argname);
}
static int __Pyx__PyInt_FromNumber(PyObject **number_var, const char *argname) {
    PyObject *number = *number_var;
    PyObject *int_object;
    if (likely(PyNumber_Check(number))) {
        int_object = PyNumber_Long(number);
        if (unlikely(!int_object)) goto bad;
    } else {
        __Pyx_PyBuiltin_Invalid(number, "int", argname);
        goto bad;
    }
    *number_var = int_object;
    Py_DECREF(number);
    return 0;
bad:
    *number_var = NULL;
    Py_DECREF(number);
    return -1;
}

/* PyObjectCompare */
#if CYTHON_USE_PYLONG_INTERNALS
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolGt
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolGt
static int __Pyx_PyObject_CompareIntIntBoolGt(PyObject *op1, PyObject *op2) {
    Py_ssize_t cmp = __Pyx_PyLong_CompareSignAndSize(op1, op2);
    if (cmp == 0) {
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        if (size > 0) {
            const digit* digits1 = __Pyx_PyLong_Digits(op1);
            const digit* digits2 = __Pyx_PyLong_Digits(op2);
            if (size == 1) {
                cmp = (Py_ssize_t) digits1[0] - (Py_ssize_t) digits2[0];
            } else if ((size == 2) && (8 * sizeof(Py_ssize_t) >= 2 * PyLong_SHIFT)) {
                cmp = (Py_ssize_t) (((((size_t)digits1[1]) << PyLong_SHIFT) | (size_t)digits1[0])) - (Py_ssize_t) (((((size_t)digits2[1]) << PyLong_SHIFT) | (size_t)digits2[0]));
            } else {
                for (Py_ssize_t i=size-1; i >= 0 && !cmp; --i) {
                    cmp = (Py_ssize_t) digits1[i] - (Py_ssize_t) digits2[i];
                }
            }
        }
        if (cmp == 0) return 0;
        if (__Pyx_PyLong_IsNeg(op1)) cmp = -cmp;
    }
    return (cmp > 0);
}
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolGt
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolGt
static CYTHON_INLINE PyObject* __Pyx_PyObject_CompareIntIntGt(PyObject *op1, PyObject *op2) {
    int result = __Pyx_PyObject_CompareIntIntBoolGt(op1, op2);
    if (unlikely(result == -1)) return NULL;
    return __Pyx_NewRef(result ? Py_True : Py_False);
}
#endif
#else
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolGt
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolGt
static int __Pyx_PyObject_CompareIntIntBoolGt(PyObject *op1, PyObject *op2) {
    int overflow1, overflow2;
    long long iop1 = PyLong_AsLongLongAndOverflow(op1, &overflow1);
    long long iop2 = PyLong_AsLongLongAndOverflow(op2, &overflow2);
    if (likely(!(overflow1 | overflow2))) {
        if (iop1 > iop2) goto __pyx_return_true; else goto __pyx_return_false;
    } else if (overflow1 != overflow2) {
        if (overflow1 > overflow2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        return __Pyx_PyObject_RichCompareBool(op1, op2, Py_GT);
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolGt_int_int(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op1 == Py_None)) {
        goto __pyx_richcmp;
    }
    if (unlikely(op2 == Py_None)) {
        goto __pyx_richcmp;
    }
    if (op1 == op2) goto __pyx_return_false;
    if (likely(op1 != Py_None)) {
        if (op1 == op2) goto __pyx_return_false;
        if (likely(op2 != Py_None)) {
            return __Pyx_PyObject_CompareIntIntBoolGt(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_GT);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* RaiseErrorWithObjectTypes (used by PyNumberBinop) */
static void __Pyx_RaiseErrorWithTypes1(PyObject* exc_type, const char *message, const char *arg, PyTypeObject *type_obj1, PyTypeObject *type_obj2) {
    __Pyx_TypeName type_name1 = __Pyx_PyType_GetFullyQualifiedName(type_obj1);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
    if (unlikely(!type_name1)) return;
    #endif
    __Pyx_TypeName type_name2 = __Pyx_PyType_GetFullyQualifiedName(type_obj2);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
    if (unlikely(!type_name2)) goto type2_failed;
    #endif
    PyErr_Format(exc_type, message, arg, type_name1, type_name2);
    __Pyx_DECREF_TypeName(type_name2);
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
type2_failed:
#endif
    __Pyx_DECREF_TypeName(type_name1);
}

/* PyNumberBinop */
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API)
#if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#ifndef __Pyx_DEFINED_BinopTypeError
#define __Pyx_DEFINED_BinopTypeError
static void __Pyx_BinopTypeError(PyObject *op1, PyObject *op2, const char* op, int inplace) {
    char opname[4] = {op[0], op[1], 0, 0};
    if (inplace) {
        opname[op[1] ? 2 : 1] = '=';
    }
    __Pyx_RaiseErrorWithObjectTypes1(
        PyExc_TypeError,
        "unsupported operand type(s) for %.3s: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'",
        opname, op1, op2);
}
#endif
#endif
#ifndef __Pyx_DEFINED_PyNumber_Subtract_xfloat_int
#define __Pyx_DEFINED_PyNumber_Subtract_xfloat_int
static PyObject* __Pyx_PyNumber_Subtract_xfloat_int(PyObject *op1, PyObject *op2, int inplace) {
    if (likely(op2 != Py_None)) {
        double int_op2;
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(op2)) {
            Py_ssize_t compact_op2 = __Pyx_PyLong_CompactValue(op2);
            if (compact_op2 == 0) return __Pyx_NewRef(op1);
            int_op2 = (double) compact_op2;
        } else
        #endif
        {
            int_op2 = PyLong_AsDouble(op2);
            if (unlikely((int_op2 == -1.) && PyErr_Occurred())) return NULL;
            #if !CYTHON_USE_PYLONG_INTERNALS
            if (int_op2 == 0.) return __Pyx_NewRef(op1);
            #endif
        }
        double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely((float_op1 == -1.) && PyErr_Occurred())) return NULL;
        #endif
        return PyFloat_FromDouble(float_op1 - int_op2);
    }
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_subtract, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "-", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2);
    #endif
}
#endif
#ifndef __Pyx_DEFINED_PyNumber_Subtract_xint_int
#define __Pyx_DEFINED_PyNumber_Subtract_xint_int
static PyObject* __Pyx_PyNumber_Subtract_xint_int(PyObject *op1, PyObject *op2, int inplace) {
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_subtract, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "-", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2);
    #endif
}
#endif
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Subtract_object_int(PyObject *op1, PyObject *op2, int inplace) {
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_PyNumber_Subtract_xfloat_int(op1, op2, inplace);
    }
    if (likely(PyLong_CheckExact(op1))) {
        if (likely(op2 != Py_None)) {
            #if CYTHON_USE_PYLONG_INTERNALS
            if (__Pyx_PyLong_IsCompact(op1)) {
                Py_ssize_t int_op1 = __Pyx_PyLong_CompactValue(op1);
                if (__Pyx_PyLong_IsCompact(op2)) {
                    Py_ssize_t int_op2 = __Pyx_PyLong_CompactValue(op2);
                    if (int_op2 == 0) return __Pyx_NewRef(op1);
                    return PyLong_FromSsize_t(int_op1 - int_op2);
                }
            }
            else if (__Pyx_PyLong_IsZero(op2)) return __Pyx_NewRef(op1);
            #endif
            binaryfunc slot_func = __Pyx_PyType_GetSubSlot(&PyLong_Type, tp_as_number, nb_subtract, binaryfunc);
            if (likely(slot_func)) {
                return slot_func(op1, op2);
            }
        }
        return __Pyx_PyNumber_Subtract_xint_int(op1, op2, inplace);
    }
    return (inplace) ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2);
}
#endif

/* PyNumberBinop */
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API)
#if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#ifndef __Pyx_DEFINED_BinopTypeError
#define __Pyx_DEFINED_BinopTypeError
static void __Pyx_BinopTypeError(PyObject *op1, PyObject *op2, const char* op, int inplace) {
    char opname[4] = {op[0], op[1], 0, 0};
    if (inplace) {
        opname[op[1] ? 2 : 1] = '=';
    }
    __Pyx_RaiseErrorWithObjectTypes1(
        PyExc_TypeError,
        "unsupported operand type(s) for %.3s: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'",
        opname, op1, op2);
}
#endif
#endif
#ifndef __Pyx_DEFINED_PyNumber_Subtract_xfloat_object
#define __Pyx_DEFINED_PyNumber_Subtract_xfloat_object
static PyObject* __Pyx_PyNumber_Subtract_xfloat_object(PyObject *op1, PyObject *op2, int inplace) {
    if (PyLong_CheckExact(op2)) {
        double int_op2;
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(op2)) {
            Py_ssize_t compact_op2 = __Pyx_PyLong_CompactValue(op2);
            if (compact_op2 == 0) return __Pyx_NewRef(op1);
            int_op2 = (double) compact_op2;
        } else
        #endif
        {
            int_op2 = PyLong_AsDouble(op2);
            if (unlikely((int_op2 == -1.) && PyErr_Occurred())) return NULL;
            #if !CYTHON_USE_PYLONG_INTERNALS
            if (int_op2 == 0.) return __Pyx_NewRef(op1);
            #endif
        }
        double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely((float_op1 == -1.) && PyErr_Occurred())) return NULL;
        #endif
        return PyFloat_FromDouble(float_op1 - int_op2);
    }
    if (PyLong_Check(op2)) {
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(&PyFloat_Type, tp_as_number, nb_subtract, binaryfunc);
        if (likely(slot_func)) {
            return slot_func(op1, op2);
        }
    }
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_subtract, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "-", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2);
    #endif
}
#endif
#ifndef __Pyx_DEFINED_PyNumber_Subtract_xint_object
#define __Pyx_DEFINED_PyNumber_Subtract_xint_object
static PyObject* __Pyx_PyNumber_Subtract_xint_object(PyObject *op1, PyObject *op2, int inplace) {
    if (PyFloat_CheckExact(op2)) {
        double int_op1;
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(op1)) {
            Py_ssize_t compact_op1 = __Pyx_PyLong_CompactValue(op1);
            int_op1 = (double) compact_op1;
        } else
        #endif
        {
            int_op1 = PyLong_AsDouble(op1);
            if (unlikely((int_op1 == -1.) && PyErr_Occurred())) return NULL;
        }
        double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely((float_op2 == -1.) && PyErr_Occurred())) return NULL;
        #endif
        return PyFloat_FromDouble(int_op1 - float_op2);
    }
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_subtract, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "-", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2);
    #endif
}
#endif
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Subtract_object_object(PyObject *op1, PyObject *op2, int inplace) {
    if (PyFloat_CheckExact(op1)) {
        if (PyFloat_CheckExact(op2)) {
            double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
            #if !CYTHON_ASSUME_SAFE_MACROS
            if (unlikely((float_op2 == -1.) && PyErr_Occurred())) return NULL;
            #endif
            double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
            #if !CYTHON_ASSUME_SAFE_MACROS
            if (unlikely((float_op1 == -1.) && PyErr_Occurred())) return NULL;
            #endif
            return PyFloat_FromDouble(float_op1 - float_op2);
        }
        return __Pyx_PyNumber_Subtract_xfloat_object(op1, op2, inplace);
    }
    if (PyLong_CheckExact(op1)) {
        if (PyLong_CheckExact(op2)) {
            #if CYTHON_USE_PYLONG_INTERNALS
            if (__Pyx_PyLong_IsCompact(op1)) {
                Py_ssize_t int_op1 = __Pyx_PyLong_CompactValue(op1);
                if (__Pyx_PyLong_IsCompact(op2)) {
                    Py_ssize_t int_op2 = __Pyx_PyLong_CompactValue(op2);
                    if (int_op2 == 0) return __Pyx_NewRef(op1);
                    return PyLong_FromSsize_t(int_op1 - int_op2);
                }
            }
            else if (__Pyx_PyLong_IsZero(op2)) return __Pyx_NewRef(op1);
            #endif
            binaryfunc slot_func = __Pyx_PyType_GetSubSlot(&PyLong_Type, tp_as_number, nb_subtract, binaryfunc);
            if (likely(slot_func)) {
                return slot_func(op1, op2);
            }
        }
        return __Pyx_PyNumber_Subtract_xint_object(op1, op2, inplace);
    }
    return (inplace) ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2);
}
#endif

/* PyNumberBinop */
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API)
#if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#ifndef __Pyx_DEFINED_BinopTypeError
#define __Pyx_DEFINED_BinopTypeError
static void __Pyx_BinopTypeError(PyObject *op1, PyObject *op2, const char* op, int inplace) {
    char opname[4] = {op[0], op[1], 0, 0};
    if (inplace) {
        opname[op[1] ? 2 : 1] = '=';
    }
    __Pyx_RaiseErrorWithObjectTypes1(
        PyExc_TypeError,
        "unsupported operand type(s) for %.3s: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'",
        opname, op1, op2);
}
#endif
#endif
#ifndef __Pyx_DEFINED_PyNumber_Add_xfloat_object
#define __Pyx_DEFINED_PyNumber_Add_xfloat_object
static PyObject* __Pyx_PyNumber_Add_xfloat_object(PyObject *op1, PyObject *op2, int inplace) {
    if (PyLong_CheckExact(op2)) {
        double int_op2;
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(op2)) {
            Py_ssize_t compact_op2 = __Pyx_PyLong_CompactValue(op2);
            if (compact_op2 == 0) return __Pyx_NewRef(op1);
            int_op2 = (double) compact_op2;
        } else
        #endif
        {
            int_op2 = PyLong_AsDouble(op2);
            if (unlikely((int_op2 == -1.) && PyErr_Occurred())) return NULL;
            #if !CYTHON_USE_PYLONG_INTERNALS
            if (int_op2 == 0.) return __Pyx_NewRef(op1);
            #endif
        }
        double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely((float_op1 == -1.) && PyErr_Occurred())) return NULL;
        #endif
        return PyFloat_FromDouble(float_op1 + int_op2);
    }
    if (PyLong_Check(op2)) {
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(&PyFloat_Type, tp_as_number, nb_add, binaryfunc);
        if (likely(slot_func)) {
            return slot_func(op1, op2);
        }
    }
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_add, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "+", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2);
    #endif
}
#endif
#ifndef __Pyx_DEFINED_PyNumber_Add_xint_object
#define __Pyx_DEFINED_PyNumber_Add_xint_object
static PyObject* __Pyx_PyNumber_Add_xint_object(PyObject *op1, PyObject *op2, int inplace) {
    if (PyFloat_CheckExact(op2)) {
        double int_op1;
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(op1)) {
            Py_ssize_t compact_op1 = __Pyx_PyLong_CompactValue(op1);
            if (compact_op1 == 0) return __Pyx_NewRef(op2);
            int_op1 = (double) compact_op1;
        } else
        #endif
        {
            int_op1 = PyLong_AsDouble(op1);
            if (unlikely((int_op1 == -1.) && PyErr_Occurred())) return NULL;
            #if !CYTHON_USE_PYLONG_INTERNALS
            if (int_op1 == 0.) return __Pyx_NewRef(op2);
            #endif
        }
        double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely((float_op2 == -1.) && PyErr_Occurred())) return NULL;
        #endif
        return PyFloat_FromDouble(int_op1 + float_op2);
    }
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_add, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "+", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2);
    #endif
}
#endif
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Add_object_object(PyObject *op1, PyObject *op2, int inplace) {
    if (PyFloat_CheckExact(op1)) {
        if (PyFloat_CheckExact(op2)) {
            double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
            #if !CYTHON_ASSUME_SAFE_MACROS
            if (unlikely((float_op2 == -1.) && PyErr_Occurred())) return NULL;
            #endif
            double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
            #if !CYTHON_ASSUME_SAFE_MACROS
            if (unlikely((float_op1 == -1.) && PyErr_Occurred())) return NULL;
            #endif
            return PyFloat_FromDouble(float_op1 + float_op2);
        }
        return __Pyx_PyNumber_Add_xfloat_object(op1, op2, inplace);
    }
    if (PyLong_CheckExact(op1)) {
        if (PyLong_CheckExact(op2)) {
            #if CYTHON_USE_PYLONG_INTERNALS
            if (__Pyx_PyLong_IsCompact(op1)) {
                Py_ssize_t int_op1 = __Pyx_PyLong_CompactValue(op1);
                if (int_op1 == 0) return __Pyx_NewRef(op2);
                if (__Pyx_PyLong_IsCompact(op2)) {
                    Py_ssize_t int_op2 = __Pyx_PyLong_CompactValue(op2);
                    if (int_op2 == 0) return __Pyx_NewRef(op1);
                    return PyLong_FromSsize_t(int_op1 + int_op2);
                }
            }
            else if (__Pyx_PyLong_IsZero(op2)) return __Pyx_NewRef(op1);
            #endif
            binaryfunc slot_func = __Pyx_PyType_GetSubSlot(&PyLong_Type, tp_as_number, nb_add, binaryfunc);
            if (likely(slot_func)) {
                return slot_func(op1, op2);
            }
        }
        return __Pyx_PyNumber_Add_xint_object(op1, op2, inplace);
    }
    return (inplace) ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2);
}
#endif

/* PyNumberBinop */
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL || CYTHON_COMPILING_IN_LIMITED_API)
#if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#ifndef __Pyx_DEFINED_BinopTypeError
#define __Pyx_DEFINED_BinopTypeError
static void __Pyx_BinopTypeError(PyObject *op1, PyObject *op2, const char* op, int inplace) {
    char opname[4] = {op[0], op[1], 0, 0};
    if (inplace) {
        opname[op[1] ? 2 : 1] = '=';
    }
    __Pyx_RaiseErrorWithObjectTypes1(
        PyExc_TypeError,
        "unsupported operand type(s) for %.3s: '" __Pyx_FMT_TYPENAME "' and '" __Pyx_FMT_TYPENAME "'",
        opname, op1, op2);
}
#endif
#endif
#ifndef __Pyx_DEFINED_PyNumber_Add_xfloat_int
#define __Pyx_DEFINED_PyNumber_Add_xfloat_int
static PyObject* __Pyx_PyNumber_Add_xfloat_int(PyObject *op1, PyObject *op2, int inplace) {
    if (likely(op2 != Py_None)) {
        double int_op2;
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(op2)) {
            Py_ssize_t compact_op2 = __Pyx_PyLong_CompactValue(op2);
            if (compact_op2 == 0) return __Pyx_NewRef(op1);
            int_op2 = (double) compact_op2;
        } else
        #endif
        {
            int_op2 = PyLong_AsDouble(op2);
            if (unlikely((int_op2 == -1.) && PyErr_Occurred())) return NULL;
            #if !CYTHON_USE_PYLONG_INTERNALS
            if (int_op2 == 0.) return __Pyx_NewRef(op1);
            #endif
        }
        double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely((float_op1 == -1.) && PyErr_Occurred())) return NULL;
        #endif
        return PyFloat_FromDouble(float_op1 + int_op2);
    }
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_add, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "+", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2);
    #endif
}
#endif
#ifndef __Pyx_DEFINED_PyNumber_Add_xint_int
#define __Pyx_DEFINED_PyNumber_Add_xint_int
static PyObject* __Pyx_PyNumber_Add_xint_int(PyObject *op1, PyObject *op2, int inplace) {
    #if CYTHON_USE_TYPE_SLOTS || __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    {
        PyTypeObject *type_op2 = Py_TYPE(op2);
        binaryfunc slot_func = __Pyx_PyType_GetSubSlot(type_op2, tp_as_number, nb_add, binaryfunc);
        if (likely(slot_func)) {
            PyObject *result = slot_func(op1, op2);
            if (likely(result != Py_NotImplemented)) {
                return result;
            }
            Py_DECREF(result);
        }
        __Pyx_BinopTypeError(op1, op2, "+", inplace);
        return NULL;
    }
    #else
    return (inplace) ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2);
    #endif
}
#endif
static CYTHON_INLINE PyObject* __Pyx__PyNumber_Add_object_int(PyObject *op1, PyObject *op2, int inplace) {
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_PyNumber_Add_xfloat_int(op1, op2, inplace);
    }
    if (likely(PyLong_CheckExact(op1))) {
        if (likely(op2 != Py_None)) {
            #if CYTHON_USE_PYLONG_INTERNALS
            if (__Pyx_PyLong_IsCompact(op1)) {
                Py_ssize_t int_op1 = __Pyx_PyLong_CompactValue(op1);
                if (int_op1 == 0) return __Pyx_NewRef(op2);
                if (__Pyx_PyLong_IsCompact(op2)) {
                    Py_ssize_t int_op2 = __Pyx_PyLong_CompactValue(op2);
                    if (int_op2 == 0) return __Pyx_NewRef(op1);
                    return PyLong_FromSsize_t(int_op1 + int_op2);
                }
            }
            else if (__Pyx_PyLong_IsZero(op2)) return __Pyx_NewRef(op1);
            #endif
            binaryfunc slot_func = __Pyx_PyType_GetSubSlot(&PyLong_Type, tp_as_number, nb_add, binaryfunc);
            if (likely(slot_func)) {
                return slot_func(op1, op2);
            }
        }
        return __Pyx_PyNumber_Add_xint_int(op1, op2, inplace);
    }
    return (inplace) ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2);
}
#endif

/* TupleOrListFromArrayImpl (used by ListFromArray) */
CYTHON_UNUSED static PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n) {
    PyObject *res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    #if CYTHON_COMPILING_IN_CPYTHON
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    #else
    Py_ssize_t i;
    for (i = 0; i < n; i++) {
        Py_INCREF(src[i]);
        if (unlikely(__Pyx_PyList_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
    }
    #endif
    return res;
}

/* SliceTupleAndList */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_crop_slice(Py_ssize_t* _start, Py_ssize_t* _stop, Py_ssize_t* _length) {
    Py_ssize_t start = *_start, stop = *_stop, length = *_length;
    if (start < 0) {
        start += length;
        if (start < 0)
            start = 0;
    }
    if (stop < 0)
        stop += length;
    else if (stop > length)
        stop = length;
    *_length = stop - start;
    *_start = start;
    *_stop = stop;
}
static CYTHON_INLINE PyObject* __Pyx_PyTuple_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyTuple_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    return __Pyx_PyTuple_FromArray(((PyTupleObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice_locked(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    Py_ssize_t length = PyList_GET_SIZE(src);
    __Pyx_crop_slice(&start, &stop, &length);
    if (length <= 0) {
        return PyList_New(0);
    }
    return __Pyx_PyList_FromArray(((PyListObject*)src)->ob_item + start, length);
}
static CYTHON_INLINE PyObject* __Pyx_PyList_GetSlice(
            PyObject* src, Py_ssize_t start, Py_ssize_t stop) {
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(src);
    result = __Pyx_PyList_GetSlice_locked(src, start, stop);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
#endif // CYTHON_COMPILING_IN_CPYTHON

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* unicode_tailmatch */
static int __Pyx_PyUnicode_TailmatchTuple(PyObject* s, PyObject* substrings,
                                          Py_ssize_t start, Py_ssize_t end, int direction) {
    Py_ssize_t i, count = __Pyx_PyTuple_GET_SIZE(substrings);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(count < 0)) return -1;
    #endif
    for (i = 0; i < count; i++) {
        Py_ssize_t result;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        result = PyUnicode_Tailmatch(s, PyTuple_GET_ITEM(substrings, i),
                                     start, end, direction);
#else
        PyObject* sub = __Pyx_PySequence_ITEM(substrings, i);
        if (unlikely(!sub)) return -1;
        result = PyUnicode_Tailmatch(s, sub, start, end, direction);
        Py_DECREF(sub);
#endif
        if (result) {
            return (int) result;
        }
    }
    return 0;
}
static int __Pyx_PyUnicode_Tailmatch(PyObject* s, PyObject* substr,
                                     Py_ssize_t start, Py_ssize_t end, int direction) {
    if (unlikely(PyTuple_Check(substr))) {
        return __Pyx_PyUnicode_TailmatchTuple(s, substr, start, end, direction);
    }
    return (int) PyUnicode_Tailmatch(s, substr, start, end, direction);
}

/* PyUCS4InUnicode */
static CYTHON_INLINE int __Pyx_UnicodeContainsUCS4(Py_UCS4 character, PyObject* text, int eq) {
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL)
    int str_kind = PyUnicode_KIND(text);
    if (character <= 0xFF && str_kind == 1) {
        Py_ssize_t len_text = PyUnicode_GET_LENGTH(text);
        return (memchr(PyUnicode_1BYTE_DATA(text), (unsigned char) character, (size_t) len_text) != NULL) == (eq == Py_EQ);
    }
    if (character > 0xFF && str_kind == 1) return (eq == Py_NE);
    if (character > 0xFFFF && str_kind == 2) return (eq == Py_NE);
#endif
    Py_ssize_t idx = PyUnicode_FindChar(text, character, 0, PY_SSIZE_T_MAX, 1);
    if (unlikely(idx == -2)) return -1;
    int result = idx >= 0;
    return (result == (eq == Py_EQ));
}

/* ListCompAppend */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        __Pyx__ListComp_AppendAndDecref(list, len, x);
        return 0;
    }
    return PyList_Append(list, x);
}
#endif

/* IterNextPlain (used by IterNext) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *__Pyx_GetBuiltinNext_LimitedAPI(void) {
    if (unlikely(!__pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache))
        __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache = __Pyx_GetBuiltinName(__pyx_mstate_global->__pyx_n_u_next);
    return __pyx_mstate_global->__Pyx_GetBuiltinNext_LimitedAPI_cache;
}
#endif
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator) {
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    PyObject *result;
    PyObject *next = __Pyx_GetBuiltinNext_LimitedAPI();
    if (unlikely(!next)) return NULL;
    result = PyObject_CallFunctionObjArgs(next, iterator, NULL);
    return result;
#else
    (void)__Pyx_GetBuiltinName; // only for early limited API
    iternextfunc iternext = __Pyx_PyObject_GetIterNextFunc(iterator);
    assert(iternext);
    return iternext(iterator);
#endif
}

/* IterNext */
static PyObject *__Pyx_PyIter_Next2Default(PyObject* defval) {
    PyObject* exc_type;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    exc_type = __Pyx_PyErr_CurrentExceptionType();
    if (unlikely(exc_type)) {
        if (!defval || unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)))
            return NULL;
        __Pyx_PyErr_Clear();
        Py_INCREF(defval);
        return defval;
    }
    if (defval) {
        Py_INCREF(defval);
        return defval;
    }
    __Pyx_PyErr_SetNone(PyExc_StopIteration);
    return NULL;
}
static void __Pyx_PyIter_Next_ErrorNoIterator(PyObject *iterator) {
    __Pyx_RaiseTypeErrorWithObjectType(
        __Pyx_FMT_TYPENAME " object is not an iterator", iterator);
}
static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject* iterator, PyObject* defval) {
    PyObject* next;
#if !CYTHON_COMPILING_IN_LIMITED_API
    iternextfunc iternext = __Pyx_PyObject_TryGetSlot(iterator, tp_iternext, iternextfunc);
    if (likely(iternext)) {
        next = iternext(iterator);
        if (likely(next))
            return next;
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030d0000
        if (unlikely(iternext == &_PyObject_NextNotImplemented))
            return NULL;
    #endif
    } else if (CYTHON_USE_TYPE_SLOTS) {
        __Pyx_PyIter_Next_ErrorNoIterator(iterator);
        return NULL;
    } else
#endif
    if (unlikely(!PyIter_Check(iterator))) {
        __Pyx_PyIter_Next_ErrorNoIterator(iterator);
        return NULL;
    } else {
        next = defval ? PyIter_Next(iterator) : __Pyx_PyIter_Next_Plain(iterator);
        if (likely(next))
            return next;
    }
    return __Pyx_PyIter_Next2Default(defval);
}

/* RaiseClosureNameError */
static void __Pyx_RaiseClosureNameError(const char *varname) {
    PyErr_Format(PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", varname);
}

/* VerifyCachedType (used by CythonFunctionFromSharedModule) */
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_OPAQUE_OBJECTS
    if (expected_basicsize < 0) {
        basicsize = PyType_GetTypeDataSize((PyTypeObject*)cached_type);
    } else
#endif
    {
    #if CYTHON_COMPILING_IN_LIMITED_API
        PyObject *py_basicsize;
        py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
        if (unlikely(!py_basicsize)) return -1;
        basicsize = PyLong_AsSsize_t(py_basicsize);
        Py_DECREF(py_basicsize);
        py_basicsize = NULL;
        if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
    #else
        basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
    #endif
    }
    if ((expected_basicsize >= 0) ?
            (basicsize != expected_basicsize) :
            (basicsize < -expected_basicsize)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}

/* CythonFunctionPerModule (used by CythonFunctionFromSharedModule) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return __Pyx_as_CyFunctionObject(func)->func_methoddef->ml_meth == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx__CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = __Pyx_as_CyFunctionObject(func);
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = __Pyx_as_CyFunctionObject(func);
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = __Pyx_as_CyFunctionObject(func);
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = __Pyx_as_CyFunctionObject(func);
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunctionFromSharedModule */
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyTypeObject *tp = __Pyx_Get_CyFunction_Type();
    if (!tp) return -1;
    if (__Pyx_VerifyCachedType((PyObject*)tp,
            __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
            __PYX_SHARED_SIZEOF(__pyx_CyFunctionObject)) != 0) {
        Py_DECREF((PyObject*)tp);
        return -1;
    }
    mstate->__pyx_CyFunctionType = tp;
    return 0;
}

/* PyObjectCompare */
#ifndef __Pyx_DEFINED_PyObject_CompareIntFloatBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntFloatBoolEq
static int __Pyx_PyObject_CompareIntFloatBoolEq(PyObject *op1, PyObject *op2) {
    double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(float_op2 == -1. && PyErr_Occurred())) return -1;
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsCompact(op1)) {
        Py_ssize_t iop1 = __Pyx_PyLong_CompactValue(op1);
        if (((double)iop1) == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    }
    if (unlikely(!isfinite(float_op2))) {
        if (0.0 == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int sign1 = __Pyx_PyLong_Sign(op1);
        if (float_op2 >= 0.) {
            if (sign1 < 0) goto __pyx_return_false;
            if (float_op2 < (double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        } else {
            if (sign1 > 0) goto __pyx_return_false;
            if (float_op2 > -(double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        }
    }
    #else
    if (unlikely(!isfinite(float_op2))) {
        if (0.0 == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int overflow1;
        long iop1 = PyLong_AsLongAndOverflow(op1, &overflow1);
        if (likely(!overflow1)) {
            if ((long long) iop1 >= (1LL << 53)) {
                overflow1 = 1;
            } else if ((long long) iop1 <= - (1LL << 53)) {
                overflow1 = -1;
            } else {
                if (((double) iop1) == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
            }
        }
        if (overflow1 < 0) {
            if (float_op2 > ((double) (1LL << 53))) goto __pyx_return_false;
        } else {
            if (float_op2 < - ((double) (1LL << 53))) goto __pyx_return_false;
        }
    }
    #endif
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#if CYTHON_USE_PYLONG_INTERNALS
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static int __Pyx_PyObject_CompareIntIntBoolEq(PyObject *op1, PyObject *op2) {
    Py_ssize_t cmp = __Pyx_PyLong_CompareSignAndSize(op1, op2);
    if (cmp == 0) {
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        if (size > 0) {
            const digit* digits1 = __Pyx_PyLong_Digits(op1);
            const digit* digits2 = __Pyx_PyLong_Digits(op2);
            if (size == 1) {
                cmp = (Py_ssize_t) digits1[0] - (Py_ssize_t) digits2[0];
            } else if ((size == 2) && (8 * sizeof(Py_ssize_t) >= 2 * PyLong_SHIFT)) {
                cmp = (Py_ssize_t) (((((size_t)digits1[1]) << PyLong_SHIFT) | (size_t)digits1[0])) - (Py_ssize_t) (((((size_t)digits2[1]) << PyLong_SHIFT) | (size_t)digits2[0]));
            } else {
                for (Py_ssize_t i=size-1; i >= 0 && !cmp; --i) {
                    cmp = (Py_ssize_t) digits1[i] - (Py_ssize_t) digits2[i];
                }
            }
        }
        if (cmp == 0) return 1;
        if (__Pyx_PyLong_IsNeg(op1)) cmp = -cmp;
    }
    return 0;
}
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static CYTHON_INLINE PyObject* __Pyx_PyObject_CompareIntIntEq(PyObject *op1, PyObject *op2) {
    int result = __Pyx_PyObject_CompareIntIntBoolEq(op1, op2);
    if (unlikely(result == -1)) return NULL;
    return __Pyx_NewRef(result ? Py_True : Py_False);
}
#endif
#else
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static int __Pyx_PyObject_CompareIntIntBoolEq(PyObject *op1, PyObject *op2) {
    int overflow1, overflow2;
    long long iop1 = PyLong_AsLongLongAndOverflow(op1, &overflow1);
    long long iop2 = PyLong_AsLongLongAndOverflow(op2, &overflow2);
    if (likely(!(overflow1 | overflow2))) {
        if (iop1 == iop2) goto __pyx_return_true; else goto __pyx_return_false;
    } else if (overflow1 != overflow2) {
        if (overflow1 == overflow2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_int_object(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op1 == Py_None)) {
        if (op2 == Py_None) goto __pyx_return_true; else goto __pyx_richcmp;
    }
    if (op1 == op2) goto __pyx_return_true;
    if (likely(op1 != Py_None)) {
        if (op1 == op2) goto __pyx_return_true;
        if (likely(PyLong_CheckExact(op2))) {
            return __Pyx_PyObject_CompareIntIntBoolEq(op1, op2);
        }
        if (PyFloat_CheckExact(op2)) {
            return __Pyx_PyObject_CompareIntFloatBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* UnicodeEqualsUCS4 (used by UnicodeEquals_uchar) */
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL)
static CYTHON_INLINE int __Pyx__PyUnicode_EqualsUCS4(PyObject* s1, Py_UCS4 ch2, int equals) {
    Py_ssize_t length;
    Py_UCS4 ch1;
    int kind;
    if (unlikely(__Pyx_PyUnicode_READY(s1) < 0)) goto bad;
    length = __Pyx_PyUnicode_GET_LENGTH(s1);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(length < 0)) goto bad;
    #endif
    if (length != 1) goto return_ne;
    kind = PyUnicode_KIND(s1);
    if (ch2 < 256) {
        if (likely(kind == PyUnicode_1BYTE_KIND)) {
            ch1 = PyUnicode_1BYTE_DATA(s1)[0];
        } else if (kind == PyUnicode_2BYTE_KIND) {
            ch1 = PyUnicode_2BYTE_DATA(s1)[0];
        } else {
            ch1 = PyUnicode_4BYTE_DATA(s1)[0];
        }
    } else if (ch2 < 65536) {
        if (kind == PyUnicode_2BYTE_KIND) {
            ch1 = PyUnicode_2BYTE_DATA(s1)[0];
        } else if (kind == PyUnicode_4BYTE_KIND) {
            ch1 = PyUnicode_4BYTE_DATA(s1)[0];
        } else {
            goto return_ne;
        }
    } else {
        if (kind == PyUnicode_4BYTE_KIND){
            ch1 = PyUnicode_4BYTE_DATA(s1)[0];
        } else {
            goto return_ne;
        }
    }
    if (ch1 == ch2) {
        goto return_eq;
    } else {
        goto return_ne;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
bad:
    return -1;
}
#endif

/* PyObjectCompare */
#ifndef __Pyx_DEFINED_PyObject_CompareIntFloatBoolNe
#define __Pyx_DEFINED_PyObject_CompareIntFloatBoolNe
static int __Pyx_PyObject_CompareIntFloatBoolNe(PyObject *op1, PyObject *op2) {
    double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(float_op2 == -1. && PyErr_Occurred())) return -1;
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsCompact(op1)) {
        Py_ssize_t iop1 = __Pyx_PyLong_CompactValue(op1);
        if (((double)iop1) != float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    }
    if (unlikely(!isfinite(float_op2))) {
        if (0.0 != float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int sign1 = __Pyx_PyLong_Sign(op1);
        if (float_op2 >= 0.) {
            if (sign1 < 0) goto __pyx_return_true;
            if (float_op2 < (double) (1L << PyLong_SHIFT)) goto __pyx_return_true;
        } else {
            if (sign1 > 0) goto __pyx_return_true;
            if (float_op2 > -(double) (1L << PyLong_SHIFT)) goto __pyx_return_true;
        }
    }
    #else
    if (unlikely(!isfinite(float_op2))) {
        if (0.0 != float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int overflow1;
        long iop1 = PyLong_AsLongAndOverflow(op1, &overflow1);
        if (likely(!overflow1)) {
            if ((long long) iop1 >= (1LL << 53)) {
                overflow1 = 1;
            } else if ((long long) iop1 <= - (1LL << 53)) {
                overflow1 = -1;
            } else {
                if (((double) iop1) != float_op2) goto __pyx_return_true; else goto __pyx_return_false;
            }
        }
        if (overflow1 < 0) {
            if (float_op2 > ((double) (1LL << 53))) goto __pyx_return_true;
        } else {
            if (float_op2 < - ((double) (1LL << 53))) goto __pyx_return_true;
        }
    }
    #endif
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_NE);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#if CYTHON_USE_PYLONG_INTERNALS
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolNe
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolNe
static int __Pyx_PyObject_CompareIntIntBoolNe(PyObject *op1, PyObject *op2) {
    Py_ssize_t cmp = __Pyx_PyLong_CompareSignAndSize(op1, op2);
    if (cmp == 0) {
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        if (size > 0) {
            const digit* digits1 = __Pyx_PyLong_Digits(op1);
            const digit* digits2 = __Pyx_PyLong_Digits(op2);
            if (size == 1) {
                cmp = (Py_ssize_t) digits1[0] - (Py_ssize_t) digits2[0];
            } else if ((size == 2) && (8 * sizeof(Py_ssize_t) >= 2 * PyLong_SHIFT)) {
                cmp = (Py_ssize_t) (((((size_t)digits1[1]) << PyLong_SHIFT) | (size_t)digits1[0])) - (Py_ssize_t) (((((size_t)digits2[1]) << PyLong_SHIFT) | (size_t)digits2[0]));
            } else {
                for (Py_ssize_t i=size-1; i >= 0 && !cmp; --i) {
                    cmp = (Py_ssize_t) digits1[i] - (Py_ssize_t) digits2[i];
                }
            }
        }
        if (cmp == 0) return 0;
        if (__Pyx_PyLong_IsNeg(op1)) cmp = -cmp;
    }
    return 1;
}
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolNe
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolNe
static CYTHON_INLINE PyObject* __Pyx_PyObject_CompareIntIntNe(PyObject *op1, PyObject *op2) {
    int result = __Pyx_PyObject_CompareIntIntBoolNe(op1, op2);
    if (unlikely(result == -1)) return NULL;
    return __Pyx_NewRef(result ? Py_True : Py_False);
}
#endif
#else
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolNe
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolNe
static int __Pyx_PyObject_CompareIntIntBoolNe(PyObject *op1, PyObject *op2) {
    int overflow1, overflow2;
    long long iop1 = PyLong_AsLongLongAndOverflow(op1, &overflow1);
    long long iop2 = PyLong_AsLongLongAndOverflow(op2, &overflow2);
    if (likely(!(overflow1 | overflow2))) {
        if (iop1 != iop2) goto __pyx_return_true; else goto __pyx_return_false;
    } else if (overflow1 != overflow2) {
        if (overflow1 != overflow2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        return __Pyx_PyObject_RichCompareBool(op1, op2, Py_NE);
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolNe_int_object(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op1 == Py_None)) {
        if (op2 == Py_None) goto __pyx_return_false; else goto __pyx_richcmp;
    }
    if (op1 == op2) goto __pyx_return_false;
    if (likely(op1 != Py_None)) {
        if (op1 == op2) goto __pyx_return_false;
        if (likely(PyLong_CheckExact(op2))) {
            return __Pyx_PyObject_CompareIntIntBoolNe(op1, op2);
        }
        if (PyFloat_CheckExact(op2)) {
            return __Pyx_PyObject_CompareIntFloatBoolNe(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_NE);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* PyObjectCompare */
#ifndef __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
#define __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
static CYTHON_INLINE int __Pyx_PyObject_CompareStrStrBoolEq(PyObject* s1, PyObject* s2) {
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    int result = PyUnicode_Equal(s1, s2);
    #if !CYTHON_COMPILING_IN_CPYTHON
    if (unlikely(result == -1)) return -1;
    #endif
    if (result == 0) goto __pyx_return_false; else goto __pyx_return_true;
    #else
    int result = PyUnicode_Compare(s1, s2);
    if (unlikely((result == -1) && PyErr_Occurred())) return -1;
    if (result == 0) goto __pyx_return_true; else goto __pyx_return_false;
    #endif
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_str_object(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op1 == Py_None)) {
        if (op2 == Py_None) goto __pyx_return_true; else goto __pyx_richcmp;
    }
    
    if (likely(op1 != Py_None)) {
        if (op1 == op2) goto __pyx_return_true;
        if (likely(PyUnicode_CheckExact(op2))) {
            return __Pyx_PyObject_CompareStrStrBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return PyLong_FromLong(-intval);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        if (size == 2 && 8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
            a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
            if (!is_positive) a *= -1;
            goto calculate_long;
        } else if (size == 2 && 8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
            lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
            if (!is_positive) lla *= -1;
            goto calculate_long_long;
        } else
        if (size == 3 && 8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
            a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
            if (!is_positive) a *= -1;
            goto calculate_long;
        } else if (size == 3 && 8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
            lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
            if (!is_positive) lla *= -1;
            goto calculate_long_long;
        } else
        if (size == 4 && 8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
            a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
            if (!is_positive) a *= -1;
            goto calculate_long;
        } else if (size == 4 && 8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
            lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
            if (!is_positive) lla *= -1;
            goto calculate_long_long;
        } else
        {}
        return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
    }
    calculate_long:
        {
            long x;
            x = a - b;
            return PyLong_FromLong(x);
        }
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla - llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_SubtractObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) - (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_SubtractObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_SubtractObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_SubtractObjC(op1, op2, inplace);
}
#endif

/* PyObjectCompare */
#ifndef __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
#define __Pyx_DEFINED_PyObject_CompareStrStrBoolEq
static CYTHON_INLINE int __Pyx_PyObject_CompareStrStrBoolEq(PyObject* s1, PyObject* s2) {
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    int result = PyUnicode_Equal(s1, s2);
    #if !CYTHON_COMPILING_IN_CPYTHON
    if (unlikely(result == -1)) return -1;
    #endif
    if (result == 0) goto __pyx_return_false; else goto __pyx_return_true;
    #else
    int result = PyUnicode_Compare(s1, s2);
    if (unlikely((result == -1) && PyErr_Occurred())) return -1;
    if (result == 0) goto __pyx_return_true; else goto __pyx_return_false;
    #endif
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL)
#ifndef __Pyx_DEFINED_PyObject_ComparePyBytesPyBytesBoolEq
#define __Pyx_DEFINED_PyObject_ComparePyBytesPyBytesBoolEq
static CYTHON_INLINE int __Pyx_PyObject_ComparePyBytesPyBytesBoolEq(PyObject* s1, PyObject* s2) {
    #if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS
    const char *ps1, *ps2;
    Py_ssize_t length = PyBytes_GET_SIZE(s1);
    if (length != PyBytes_GET_SIZE(s2)) goto __pyx_return_false;
    ps1 = PyBytes_AS_STRING(s1);
    ps2 = PyBytes_AS_STRING(s2);
    #else
    char *ps1, *ps2;
    Py_ssize_t length, length2;
    if (unlikely(PyBytes_AsStringAndSize(s1, &ps1, &length) == -1)) return -1;
    if (unlikely(PyBytes_AsStringAndSize(s2, &ps2, &length2) == -1)) return -1;
    if (length != length2) goto __pyx_return_false;
    #endif
    if (ps1[0] != ps2[0]) goto __pyx_return_false;
    if (length == 1) goto __pyx_return_true;
    {
        int cmp;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
        Py_hash_t hash1 = ((PyBytesObject*)s1)->ob_shash;
        Py_hash_t hash2 = ((PyBytesObject*)s2)->ob_shash;
        if (hash1 != hash2 && hash1 != -1 && hash2 != -1) goto __pyx_return_false;
#endif
        cmp = memcmp(ps1, ps2, (size_t)length);
        if (cmp == 0) goto __pyx_return_true; else goto __pyx_return_false;
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL)
#ifndef __Pyx_DEFINED_PyObject_ComparePyBytesPyByteArrayBoolEq
#define __Pyx_DEFINED_PyObject_ComparePyBytesPyByteArrayBoolEq
static CYTHON_INLINE int __Pyx_PyObject_ComparePyBytesPyByteArrayBoolEq(PyObject* s1, PyObject* s2) {
    #if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS
    const char *ps1, *ps2;
    Py_ssize_t length = PyBytes_GET_SIZE(s1);
    if (length != PyByteArray_GET_SIZE(s2)) goto __pyx_return_false;
    ps1 = PyBytes_AS_STRING(s1);
    ps2 = PyByteArray_AS_STRING(s2);
    #else
    char *ps1, *ps2;
    Py_ssize_t length, length2;
    if (unlikely(PyBytes_AsStringAndSize(s1, &ps1, &length) == -1)) return -1;
    ps2 = __Pyx_PyByteArray_AsString(s2); if (unlikely(!ps2)) return -1;
    length2 = __Pyx_PyByteArray_GET_SIZE(s2); if (unlikely(length2 == -1)) return -1;
    if (length != length2) goto __pyx_return_false;
    #endif
    if (ps1[0] != ps2[0]) goto __pyx_return_false;
    if (length == 1) goto __pyx_return_true;
    {
        int cmp;
        cmp = memcmp(ps1, ps2, (size_t)length);
        if (cmp == 0) goto __pyx_return_true; else goto __pyx_return_false;
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL)
#ifndef __Pyx_DEFINED_PyObject_ComparePyByteArrayPyBytesBoolEq
#define __Pyx_DEFINED_PyObject_ComparePyByteArrayPyBytesBoolEq
static CYTHON_INLINE int __Pyx_PyObject_ComparePyByteArrayPyBytesBoolEq(PyObject* s1, PyObject* s2) {
    #if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS
    const char *ps1, *ps2;
    Py_ssize_t length = PyByteArray_GET_SIZE(s1);
    if (length != PyBytes_GET_SIZE(s2)) goto __pyx_return_false;
    ps1 = PyByteArray_AS_STRING(s1);
    ps2 = PyBytes_AS_STRING(s2);
    #else
    char *ps1, *ps2;
    Py_ssize_t length, length2;
    ps1 = __Pyx_PyByteArray_AsString(s1); if (unlikely(!ps1)) return -1;
    length = __Pyx_PyByteArray_GET_SIZE(s1); if (unlikely(length == -1)) return -1;
    if (unlikely(PyBytes_AsStringAndSize(s2, &ps2, &length2) == -1)) return -1;
    if (length != length2) goto __pyx_return_false;
    #endif
    if (length == 0) goto __pyx_return_true;
    if (ps1[0] != ps2[0]) goto __pyx_return_false;
    if (length == 1) goto __pyx_return_true;
    {
        int cmp;
        cmp = memcmp(ps1, ps2, (size_t)length);
        if (cmp == 0) goto __pyx_return_true; else goto __pyx_return_false;
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
#if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL)
#ifndef __Pyx_DEFINED_PyObject_ComparePyByteArrayPyByteArrayBoolEq
#define __Pyx_DEFINED_PyObject_ComparePyByteArrayPyByteArrayBoolEq
static CYTHON_INLINE int __Pyx_PyObject_ComparePyByteArrayPyByteArrayBoolEq(PyObject* s1, PyObject* s2) {
    #if CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS
    const char *ps1, *ps2;
    Py_ssize_t length = PyByteArray_GET_SIZE(s1);
    if (length != PyByteArray_GET_SIZE(s2)) goto __pyx_return_false;
    ps1 = PyByteArray_AS_STRING(s1);
    ps2 = PyByteArray_AS_STRING(s2);
    #else
    char *ps1, *ps2;
    Py_ssize_t length, length2;
    ps1 = __Pyx_PyByteArray_AsString(s1); if (unlikely(!ps1)) return -1;
    length = __Pyx_PyByteArray_GET_SIZE(s1); if (unlikely(length == -1)) return -1;
    ps2 = __Pyx_PyByteArray_AsString(s2); if (unlikely(!ps2)) return -1;
    length2 = __Pyx_PyByteArray_GET_SIZE(s2); if (unlikely(length2 == -1)) return -1;
    if (length != length2) goto __pyx_return_false;
    #endif
    if (length == 0) goto __pyx_return_true;
    if (ps1[0] != ps2[0]) goto __pyx_return_false;
    if (length == 1) goto __pyx_return_true;
    {
        int cmp;
        cmp = memcmp(ps1, ps2, (size_t)length);
        if (cmp == 0) goto __pyx_return_true; else goto __pyx_return_false;
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareFloatIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareFloatIntBoolEq
static int __Pyx_PyObject_CompareFloatIntBoolEq(PyObject *op1, PyObject *op2) {
    double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(float_op1 == -1. && PyErr_Occurred())) return -1;
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsCompact(op2)) {
        Py_ssize_t iop2 = __Pyx_PyLong_CompactValue(op2);
        if (float_op1 == ((double)iop2)) goto __pyx_return_true; else goto __pyx_return_false;
    }
    if (unlikely(!isfinite(float_op1))) {
        if (float_op1 == 0.0) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int sign2 = __Pyx_PyLong_Sign(op2);
        if (float_op1 >= 0.) {
            if (sign2 < 0) goto __pyx_return_false;
            if (float_op1 < (double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        } else {
            if (sign2 > 0) goto __pyx_return_false;
            if (float_op1 > -(double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        }
    }
    #else
    if (unlikely(!isfinite(float_op1))) {
        if (float_op1 == 0.0) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int overflow2;
        long iop2 = PyLong_AsLongAndOverflow(op2, &overflow2);
        if (likely(!overflow2)) {
            if ((long long) iop2 >= (1LL << 53)) {
                overflow2 = 1;
            } else if ((long long) iop2 <= - (1LL << 53)) {
                overflow2 = -1;
            } else {
                if (float_op1 == ((double) iop2)) goto __pyx_return_true; else goto __pyx_return_false;
            }
        }
        if (overflow2 > 0) {
            if (float_op1 < ((double) (1LL << 53))) goto __pyx_return_false;
        } else {
            if (float_op1 > - ((double) (1LL << 53))) goto __pyx_return_false;
        }
    }
    #endif
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareIntFloatBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntFloatBoolEq
static int __Pyx_PyObject_CompareIntFloatBoolEq(PyObject *op1, PyObject *op2) {
    double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(float_op2 == -1. && PyErr_Occurred())) return -1;
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsCompact(op1)) {
        Py_ssize_t iop1 = __Pyx_PyLong_CompactValue(op1);
        if (((double)iop1) == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    }
    if (unlikely(!isfinite(float_op2))) {
        if (0.0 == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int sign1 = __Pyx_PyLong_Sign(op1);
        if (float_op2 >= 0.) {
            if (sign1 < 0) goto __pyx_return_false;
            if (float_op2 < (double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        } else {
            if (sign1 > 0) goto __pyx_return_false;
            if (float_op2 > -(double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        }
    }
    #else
    if (unlikely(!isfinite(float_op2))) {
        if (0.0 == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int overflow1;
        long iop1 = PyLong_AsLongAndOverflow(op1, &overflow1);
        if (likely(!overflow1)) {
            if ((long long) iop1 >= (1LL << 53)) {
                overflow1 = 1;
            } else if ((long long) iop1 <= - (1LL << 53)) {
                overflow1 = -1;
            } else {
                if (((double) iop1) == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
            }
        }
        if (overflow1 < 0) {
            if (float_op2 > ((double) (1LL << 53))) goto __pyx_return_false;
        } else {
            if (float_op2 < - ((double) (1LL << 53))) goto __pyx_return_false;
        }
    }
    #endif
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#if CYTHON_USE_PYLONG_INTERNALS
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static int __Pyx_PyObject_CompareIntIntBoolEq(PyObject *op1, PyObject *op2) {
    Py_ssize_t cmp = __Pyx_PyLong_CompareSignAndSize(op1, op2);
    if (cmp == 0) {
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        if (size > 0) {
            const digit* digits1 = __Pyx_PyLong_Digits(op1);
            const digit* digits2 = __Pyx_PyLong_Digits(op2);
            if (size == 1) {
                cmp = (Py_ssize_t) digits1[0] - (Py_ssize_t) digits2[0];
            } else if ((size == 2) && (8 * sizeof(Py_ssize_t) >= 2 * PyLong_SHIFT)) {
                cmp = (Py_ssize_t) (((((size_t)digits1[1]) << PyLong_SHIFT) | (size_t)digits1[0])) - (Py_ssize_t) (((((size_t)digits2[1]) << PyLong_SHIFT) | (size_t)digits2[0]));
            } else {
                for (Py_ssize_t i=size-1; i >= 0 && !cmp; --i) {
                    cmp = (Py_ssize_t) digits1[i] - (Py_ssize_t) digits2[i];
                }
            }
        }
        if (cmp == 0) return 1;
        if (__Pyx_PyLong_IsNeg(op1)) cmp = -cmp;
    }
    return 0;
}
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static CYTHON_INLINE PyObject* __Pyx_PyObject_CompareIntIntEq(PyObject *op1, PyObject *op2) {
    int result = __Pyx_PyObject_CompareIntIntBoolEq(op1, op2);
    if (unlikely(result == -1)) return NULL;
    return __Pyx_NewRef(result ? Py_True : Py_False);
}
#endif
#else
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolEq
static int __Pyx_PyObject_CompareIntIntBoolEq(PyObject *op1, PyObject *op2) {
    int overflow1, overflow2;
    long long iop1 = PyLong_AsLongLongAndOverflow(op1, &overflow1);
    long long iop2 = PyLong_AsLongLongAndOverflow(op2, &overflow2);
    if (likely(!(overflow1 | overflow2))) {
        if (iop1 == iop2) goto __pyx_return_true; else goto __pyx_return_false;
    } else if (overflow1 != overflow2) {
        if (overflow1 == overflow2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolEq_object_object(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (PyFloat_CheckExact(op1)) {
        if (PyFloat_CheckExact(op2)) {
            double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
            #if !CYTHON_ASSUME_SAFE_MACROS
            if (unlikely(float_op1 == -1. && PyErr_Occurred())) return -1;
            #endif
            double float_op2 = __Pyx_PyFloat_AS_DOUBLE(op2);
            #if !CYTHON_ASSUME_SAFE_MACROS
            if (unlikely(float_op2 == -1. && PyErr_Occurred())) return -1;
            #endif
            if (float_op1 == float_op2) goto __pyx_return_true; else goto __pyx_return_false;
        }
        if (PyLong_CheckExact(op2)) {
            return __Pyx_PyObject_CompareFloatIntBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if (PyLong_CheckExact(op1)) {
        if (op1 == op2) goto __pyx_return_true;
        if (PyLong_CheckExact(op2)) {
            return __Pyx_PyObject_CompareIntIntBoolEq(op1, op2);
        }
        if (PyFloat_CheckExact(op2)) {
            return __Pyx_PyObject_CompareIntFloatBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    
    if (PyUnicode_CheckExact(op1)) {
        if (op1 == op2) goto __pyx_return_true;
        if (PyUnicode_CheckExact(op2)) {
            return __Pyx_PyObject_CompareStrStrBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    
    #if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL)
    if (PyBytes_CheckExact(op1)) {
        if (op1 == op2) goto __pyx_return_true;
        if (PyBytes_CheckExact(op2)) {
            return __Pyx_PyObject_ComparePyBytesPyBytesBoolEq(op1, op2);
        }
        if (PyByteArray_CheckExact(op2)) {
            return __Pyx_PyObject_ComparePyBytesPyByteArrayBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    #endif
    #if !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_GRAAL)
    if (PyByteArray_CheckExact(op1)) {
        if (op1 == op2) goto __pyx_return_true;
        if (PyByteArray_CheckExact(op2)) {
            return __Pyx_PyObject_ComparePyByteArrayPyByteArrayBoolEq(op1, op2);
        }
        if (PyBytes_CheckExact(op2)) {
            return __Pyx_PyObject_ComparePyByteArrayPyBytesBoolEq(op1, op2);
        }
        goto __pyx_richcmp;
    }
    #endif
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_EQ);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* ListExtend */
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030d0000) && !defined(PyList_Extend)
static CYTHON_INLINE int __Pyx_PyList_Extend(PyObject* L, PyObject* v) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject* none = _PyList_Extend((PyListObject*)L, v);
    if (unlikely(!none))
        return -1;
    Py_DECREF(none);
    return 0;
#else
    return PyList_SetSlice(L, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, v);
#endif
}
#endif

/* PyObjectCompare */
#ifndef __Pyx_DEFINED_PyObject_CompareFloatIntBoolLt
#define __Pyx_DEFINED_PyObject_CompareFloatIntBoolLt
static int __Pyx_PyObject_CompareFloatIntBoolLt(PyObject *op1, PyObject *op2) {
    double float_op1 = __Pyx_PyFloat_AS_DOUBLE(op1);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(float_op1 == -1. && PyErr_Occurred())) return -1;
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsCompact(op2)) {
        Py_ssize_t iop2 = __Pyx_PyLong_CompactValue(op2);
        if (float_op1 < ((double)iop2)) goto __pyx_return_true; else goto __pyx_return_false;
    }
    if (unlikely(!isfinite(float_op1))) {
        if (float_op1 < 0.0) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int sign2 = __Pyx_PyLong_Sign(op2);
        if (float_op1 >= 0.) {
            if (sign2 < 0) goto __pyx_return_false;
            if (float_op1 < (double) (1L << PyLong_SHIFT)) goto __pyx_return_true;
        } else {
            if (sign2 > 0) goto __pyx_return_true;
            if (float_op1 > -(double) (1L << PyLong_SHIFT)) goto __pyx_return_false;
        }
    }
    #else
    if (unlikely(!isfinite(float_op1))) {
        if (float_op1 < 0.0) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        int overflow2;
        long iop2 = PyLong_AsLongAndOverflow(op2, &overflow2);
        if (likely(!overflow2)) {
            if ((long long) iop2 >= (1LL << 53)) {
                overflow2 = 1;
            } else if ((long long) iop2 <= - (1LL << 53)) {
                overflow2 = -1;
            } else {
                if (float_op1 < ((double) iop2)) goto __pyx_return_true; else goto __pyx_return_false;
            }
        }
        if (overflow2 > 0) {
            if (float_op1 < ((double) (1LL << 53))) goto __pyx_return_true;
        } else {
            if (float_op1 > - ((double) (1LL << 53))) goto __pyx_return_false;
        }
    }
    #endif
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_LT);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#if CYTHON_USE_PYLONG_INTERNALS
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolLt
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolLt
static int __Pyx_PyObject_CompareIntIntBoolLt(PyObject *op1, PyObject *op2) {
    Py_ssize_t cmp = __Pyx_PyLong_CompareSignAndSize(op1, op2);
    if (cmp == 0) {
        Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
        if (size > 0) {
            const digit* digits1 = __Pyx_PyLong_Digits(op1);
            const digit* digits2 = __Pyx_PyLong_Digits(op2);
            if (size == 1) {
                cmp = (Py_ssize_t) digits1[0] - (Py_ssize_t) digits2[0];
            } else if ((size == 2) && (8 * sizeof(Py_ssize_t) >= 2 * PyLong_SHIFT)) {
                cmp = (Py_ssize_t) (((((size_t)digits1[1]) << PyLong_SHIFT) | (size_t)digits1[0])) - (Py_ssize_t) (((((size_t)digits2[1]) << PyLong_SHIFT) | (size_t)digits2[0]));
            } else {
                for (Py_ssize_t i=size-1; i >= 0 && !cmp; --i) {
                    cmp = (Py_ssize_t) digits1[i] - (Py_ssize_t) digits2[i];
                }
            }
        }
        if (cmp == 0) return 0;
        if (__Pyx_PyLong_IsNeg(op1)) cmp = -cmp;
    }
    return (cmp < 0);
}
#endif
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolLt
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolLt
static CYTHON_INLINE PyObject* __Pyx_PyObject_CompareIntIntLt(PyObject *op1, PyObject *op2) {
    int result = __Pyx_PyObject_CompareIntIntBoolLt(op1, op2);
    if (unlikely(result == -1)) return NULL;
    return __Pyx_NewRef(result ? Py_True : Py_False);
}
#endif
#else
#ifndef __Pyx_DEFINED_PyObject_CompareIntIntBoolLt
#define __Pyx_DEFINED_PyObject_CompareIntIntBoolLt
static int __Pyx_PyObject_CompareIntIntBoolLt(PyObject *op1, PyObject *op2) {
    int overflow1, overflow2;
    long long iop1 = PyLong_AsLongLongAndOverflow(op1, &overflow1);
    long long iop2 = PyLong_AsLongLongAndOverflow(op2, &overflow2);
    if (likely(!(overflow1 | overflow2))) {
        if (iop1 < iop2) goto __pyx_return_true; else goto __pyx_return_false;
    } else if (overflow1 != overflow2) {
        if (overflow1 < overflow2) goto __pyx_return_true; else goto __pyx_return_false;
    } else {
        return __Pyx_PyObject_RichCompareBool(op1, op2, Py_LT);
    }
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}
#endif
#endif
static CYTHON_INLINE int __Pyx_PyObject_CompareBoolLt_object_int(PyObject *op1, PyObject *op2, int pyop) {
    CYTHON_UNUSED_VAR(pyop);
    if (unlikely(op2 == Py_None)) {
        goto __pyx_richcmp;
    }
    if (op1 == op2) goto __pyx_return_false;
    if (PyFloat_CheckExact(op1)) {
        if (likely(op2 != Py_None)) {
            return __Pyx_PyObject_CompareFloatIntBoolLt(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if (likely(PyLong_CheckExact(op1))) {
        if (op1 == op2) goto __pyx_return_false;
        if (likely(op2 != Py_None)) {
            return __Pyx_PyObject_CompareIntIntBoolLt(op1, op2);
        }
        goto __pyx_richcmp;
    }
    if ((0)) goto __pyx_richcmp;
    if ((0)) goto __pyx_return_true;
    if ((0)) goto __pyx_return_false;
__pyx_richcmp:
    return __Pyx_PyObject_RichCompareBool(op1, op2, Py_LT);
__pyx_return_true:
    return 1;
__pyx_return_false:
    return 0;
}

/* AllocateExtensionType */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) {
    if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
        allocfunc alloc_func = __Pyx_PyType_GetSlot(t, tp_alloc, allocfunc);
        return alloc_func(t, 0);
    } else {
        newfunc tp_new = __Pyx_PyType_TryGetSlot(&PyBaseObject_Type, tp_new, newfunc);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (!tp_new) {
            PyObject *new_str = PyUnicode_FromString("__new__");
            if (likely(new_str)) {
                PyObject *o = PyObject_CallMethodObjArgs((PyObject *)&PyBaseObject_Type, new_str, t, NULL);
                Py_DECREF(new_str);
                return o;
            } else
                return NULL;
        } else
    #endif
        return tp_new(t, __pyx_mstate_global->__pyx_empty_tuple, 0);
    }
}

/* CallSlotAsVectorcallUnpackDict (used by CallSlotAsVectorcall) */
static CYTHON_INLINE int __Pyx_CallSlotAsVectorcallUnpackDict(Py_ssize_t args_size, PyObject *keys_dict, PyObject **args, PyObject *kwnames) {
    Py_ssize_t pos = 0, i = 0;
    PyObject *key, *value;
    while (PyDict_Next(keys_dict, &pos, &key, &value)) {
        Py_INCREF(value);
        args[args_size+i] = value;
        Py_INCREF(key);
        if (unlikely(__Pyx_PyTuple_SET_ITEM(kwnames, i, key) == -1)) {
            return -1;
        }
        ++i;
    }
    return 0;
}

/* CallSlotAsVectorcall */
#if CYTHON_VECTORCALL_TPNEW
static PyObject * __Pyx_CallTpnewAsVectorcall(__Pyx_tpnewvectorcallfunc f, PyTypeObject* o, PyObject *a, PyObject *k) {
    Py_ssize_t k_size = k ? __Pyx_PyDict_GET_SIZE(k) : 0;
#if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(k_size < 0)) return NULL;
#endif
    Py_ssize_t a_size = __Pyx_PyTuple_GET_SIZE(a);
#if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(a_size < 0)) return NULL;
#endif
#if CYTHON_ASSUME_SAFE_MACROS
    if (k_size == 0) {
        return f(o, &PyTuple_GET_ITEM(a, 0), a_size, NULL);
    }
#else
    if (k_size == 0 && a_size == 0) {
        return f(o, NULL, 0, NULL);
    }
#endif
    PyObject *stack_args[5];
    PyObject **args = stack_args;
    Py_ssize_t maxnargs = PY_SSIZE_T_MAX / sizeof(PyObject*) - 1;
    if (a_size > maxnargs - k_size) {
        PyErr_NoMemory();
        return NULL;
    }
    Py_ssize_t total_size = a_size + k_size;
    if (total_size > 5) {
        args = (PyObject**)PyMem_Malloc(((size_t)total_size)*sizeof(PyObject*));
        if (unlikely(!args)) {
            PyErr_NoMemory();
            return NULL;
        }
    }
    PyObject * result = NULL;
    PyObject *kwnames = NULL;
    int unpack_dict_result;
    Py_ssize_t i = 0;
    for (; i < a_size; ++i) {
        args[i] = __Pyx_PyTuple_GET_ITEM(a, i);
#if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!args[i])) goto cleanup;
#endif
    }
#if !CYTHON_ASSUME_SAFE_MACROS
    if (k)  // There's a specific shortcut earlier for ASSUME_SAFE_MACROS with no keywords
#endif
    {
        kwnames = PyTuple_New(k_size);
        if (unlikely(!kwnames)) goto cleanup;
        __Pyx_BEGIN_CRITICAL_SECTION(k);
        unpack_dict_result = __Pyx_CallSlotAsVectorcallUnpackDict(a_size, k, args, kwnames);
        __Pyx_END_CRITICAL_SECTION();
        if (unlikely(unpack_dict_result == -1)) goto cleanup;
    }
    result = f(o, args, a_size, kwnames);
  cleanup:
    Py_XDECREF(kwnames);
    for (i=a_size; i<total_size; ++i) {
        Py_XDECREF(args[i]);
    }
    if (args != stack_args) {
        PyMem_Free(args);
    }
    return result;
}
#endif

/* CallNewInitFromVectorcall */
#if CYTHON_VECTORCALL_TPNEW
static PyObject *__Pyx_CallNewInitFromVectorcall(PyTypeObject *t, PyObject *const *args, size_t nargsf, PyObject *kwnames) {
    newfunc tp_new = __Pyx_PyType_GetSlot(t, tp_new, newfunc);
    if (unlikely(!tp_new)) {
        __Pyx_RaiseErrorWithType(PyExc_TypeError, "cannot create " __Pyx_FMT_TYPENAME " instances", t);
        return NULL;
    }
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(nargsf);
    PyObject *result = NULL, *args_tuple = NULL, *kwds_dict = NULL;
    Py_ssize_t kw_size = kwnames ? __Pyx_PyTuple_GET_SIZE(kwnames) : 0;
#if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    if (kw_size) {
        kwds_dict = __Pyx_PyDict_NewPresized(kw_size);
        if (unlikely(!kwds_dict)) {
            return NULL;
        }
        for (Py_ssize_t i=0; i<kw_size; ++i) {
            PyObject *v = args[nargs + i];
            PyObject *k = __Pyx_PyTuple_GET_ITEM(kwnames, i);
#if !CYTHON_ASSUME_SAFE_MACROS
            if (unlikely(!k)) {
                goto end;
            }
#endif
            if (unlikely(PyDict_SetItem(kwds_dict, k, v) < 0)) {
                goto end;
            }
        }
    }
    if (nargs) {
        args_tuple = __Pyx_PyTuple_FromArray(args, nargs);
        if (unlikely(!args_tuple)) {
            goto end;
        }
    } else {
        args_tuple = __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    result = tp_new(t, args_tuple, kwds_dict);
    if (unlikely(!result)) {
        goto end;
    }
    if (PyObject_TypeCheck(result, t)) {
        initproc tp_init = __Pyx_PyObject_GetSlot(result, tp_init, initproc);
        if (tp_init && unlikely(tp_init(result, args_tuple, kwds_dict) < 0)) {
            Py_CLEAR(result);
        }
    }
  end:
    Py_XDECREF(args_tuple);
    Py_XDECREF(kwds_dict);
    return result;
}
#endif

/* CallTypeTraverse */
#if !CYTHON_USE_TYPE_SPECS
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* CalculateMetaclass */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases;
#if CYTHON_ASSUME_SAFE_SIZE
    nbases = PyTuple_GET_SIZE(bases);
#else
    nbases = PyTuple_Size(bases);
    if (nbases < 0) return NULL;
#endif
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
#if CYTHON_ASSUME_SAFE_MACROS
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *tmp = PyTuple_GetItem(bases, i);
        if (!tmp) return NULL;
#endif
        tmptype = Py_TYPE(tmp);
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
        metaclass = &PyType_Type;
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* ClassMethod */
static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM <= 0x05080000
    if (PyObject_TypeCheck(method, &PyWrapperDescr_Type)) {
        return PyClassMethod_New(method);
    }
#else
#if CYTHON_COMPILING_IN_PYPY
    if (PyMethodDescr_Check(method))
#else
    if (__Pyx_TypeCheck(method, &PyMethodDescr_Type))
#endif
    {
#if CYTHON_COMPILING_IN_LIMITED_API
        return PyErr_Format(
            PyExc_SystemError,
            "Cython cannot yet handle classmethod on a MethodDescriptorType (%S) in limited API mode. "
            "This is most likely a classmethod in a cdef class method with binding=False. "
            "Try setting 'binding' to True.",
            method);
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
        PyTypeObject *d_type = GraalPyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, GraalPyMethodDescrObject_GetMethod(method));
#elif CYTHON_COMPILING_IN_GRAAL
        PyTypeObject *d_type = PyDescrObject_GetType(method);
        return PyDescr_NewClassMethod(d_type, PyMethodDescrObject_GetMethod(method));
#else
        PyMethodDescrObject *descr = (PyMethodDescrObject *)method;
        PyTypeObject *d_type = descr->d_common.d_type;
        return PyDescr_NewClassMethod(d_type, descr->d_method);
#endif
    }
#endif
#if !CYTHON_COMPILING_IN_LIMITED_API
    else if (PyMethod_Check(method)) {
        return PyClassMethod_New(PyMethod_GET_FUNCTION(method));
    }
    else {
        return PyClassMethod_New(method);
    }
#else
    {
        PyObject *func=NULL;
        PyObject *builtins, *classmethod, *classmethod_str, *result=NULL;
        if (__Pyx_TypeCheck(method, __pyx_mstate_global->__Pyx_CachedMethodType)) {
            func = PyObject_GetAttrString(method, "__func__");
            if (!func) goto bad;
        } else {
            func = method;
            Py_INCREF(func);
        }
        builtins = PyEval_GetBuiltins(); // borrowed
        if (unlikely(!builtins)) goto bad;
        classmethod_str = PyUnicode_FromString("classmethod");
        if (unlikely(!classmethod_str)) goto bad;
        classmethod = PyObject_GetItem(builtins, classmethod_str);
        Py_DECREF(classmethod_str);
        if (unlikely(!classmethod)) goto bad;
        result = PyObject_CallFunctionObjArgs(classmethod, func, NULL);
        Py_DECREF(classmethod);
        bad:
        Py_XDECREF(func);
        return result;
    }
#endif
}

/* dict_setdefault (used by CLineInTraceback) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if __PYX_LIMITED_VERSION_HEX >= 0x030F0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4)
    PyDict_SetDefaultRef(d, key, default_value, &value);
#elif CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            code_cache->count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    __Pyx_PyErr_FetchException(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    __Pyx_PyErr_RestoreException(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    if (c_line) {
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_mstate_global->__pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL, *from_bytes_str = NULL;;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        from_bytes_str = PyUnicode_FromStringAndSize("from_bytes", 10);
        if (!from_bytes_str) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[] = { (PyObject*)&PyLong_Type, py_bytes, order_str, Py_True };
            if (!is_unsigned) {
                PyObject *signed_str = PyUnicode_FromStringAndSize("signed", 6);
                if (!signed_str) goto limited_bad;
#if CYTHON_VECTORCALL
                kwds = PyTuple_Pack(1, signed_str);
#else
                {
                    PyObject *keys[] = {signed_str};
                    PyObject *values[] = {Py_True};
                    kwds = __Pyx_MakeKwargDict(keys, values, 1);
                }
#endif
                Py_DECREF(signed_str);
                if (unlikely(!kwds)) goto limited_bad;
            }
            result = __Pyx_Object_VectorcallMethodKwds(from_bytes_str, args, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes_str);
        return result;
#endif
    }
}

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
    if (likely(PyUnicode_Check(n)))
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* Globals */
static PyObject* __Pyx_Globals(void) {
    return __Pyx_NewRef(__pyx_mstate_global->__pyx_d);
}

/* CIntFromPyVerify (used by CIntFromPy) */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntFromPy */
static long __Pyx_LargePyLong___Pyx_PyLong_As_long(PyObject *x);
static long __Pyx_raise_neg_overflow___Pyx_PyLong_As_long(void) {
    const char* type_name = "long";
    PyErr_Format(PyExc_OverflowError,
        "can't convert negative value to %.200s", type_name);
    return (long) -1;
}
static long __Pyx_raise_overflow___Pyx_PyLong_As_long(void) {
    const char* type_name = "long";
    PyErr_Format(PyExc_OverflowError,
        "value too large to convert to %.200s", type_name);
    return (long) -1;
}
static CYTHON_INLINE long __Pyx_PyULong___Pyx_PyLong_As_long(PyObject *x) {
    const int is_unsigned = 1;
#if CYTHON_USE_PYLONG_INTERNALS
    {
        const digit* digits = __Pyx_PyLong_Digits(x);
        const Py_ssize_t size = __Pyx_PyLong_DigitCount(x);
        if (size == 2 && (8 * sizeof(long) > 1 * PyLong_SHIFT)) {
            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
                return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
            }
        } else
        if (size == 3 && (8 * sizeof(long) > 2 * PyLong_SHIFT)) {
            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
                return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
            }
        } else
        if (size == 4 && (8 * sizeof(long) > 3 * PyLong_SHIFT)) {
            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
                return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
            }
        } else
        {}
    }
#elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
    if (unlikely(Py_SIZE(x) < 0)) {
        goto raise_neg_overflow;
    }
#else
    {
        int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
        if (unlikely(result < 0))
            return (long) -1;
        if (unlikely(result == 1))
            goto raise_neg_overflow;
    }
#endif
    if ((sizeof(long) <= sizeof(unsigned long))) {
        __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
    } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
        __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
    }
    return __Pyx_LargePyLong___Pyx_PyLong_As_long(x);
raise_neg_overflow:
    return __Pyx_raise_neg_overflow___Pyx_PyLong_As_long();
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_long();
}
static CYTHON_INLINE long __Pyx_PySLong___Pyx_PyLong_As_long(PyObject *x) {
    const int is_unsigned = 0;
#if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsNeg(x)) {
        const Py_ssize_t size = __Pyx_PyLong_DigitCount(x);
        const digit* digits = __Pyx_PyLong_Digits(x);
        if (size == 2 && (8 * sizeof(long) > 1 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                long ival = - (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                __PYX_VERIFY_RETURN_INT(long, long, ival)
            } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                return (long) (((long) -1) * (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
            }
        } else
        if (size == 3 && (8 * sizeof(long) > 2 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                long ival = - (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                __PYX_VERIFY_RETURN_INT(long, long, ival)
            } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                return (long) (((long) -1) * (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
            }
        } else
        if (size == 4 && (8 * sizeof(long) > 3 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 4 * PyLong_SHIFT)) {
                long ival = - (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                __PYX_VERIFY_RETURN_INT(long, long, ival)
            } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                return (long) (((long) -1) * (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
            }
        } else
        {}
    } else {
        const Py_ssize_t size = __Pyx_PyLong_DigitCount(x);
        const digit* digits = __Pyx_PyLong_Digits(x);
        if (size == 2 && (8 * sizeof(long) > 1 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
            }
        } else
        if (size == 3 && (8 * sizeof(long) > 2 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
            }
        } else
        if (size == 4 && (8 * sizeof(long) > 3 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 4 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
            }
        } else
        {}
    }
#endif
    #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    if ((sizeof(long) <= sizeof(int)) && (sizeof(int) < sizeof(long))) {
        __PYX_VERIFY_RETURN_INT_EXC(long, int, PyLong_AsInt(x))
    } else
    #endif
    if ((sizeof(long) <= sizeof(long))) {
        __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
    } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
        __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
    }
    return __Pyx_LargePyLong___Pyx_PyLong_As_long(x);
raise_neg_overflow:
    return __Pyx_raise_neg_overflow___Pyx_PyLong_As_long();
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_long();
}
static long __Pyx_LargePyLong___Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    long val;
    int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
        x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
    if (unlikely(bytes_copied == -1)) {
    } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
        goto raise_overflow;
    } else {
        ret = 0;
    }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
    int one = 1; int is_little = (int)*(unsigned char *)&one;
    unsigned char *bytes = (unsigned char *)&val;
    ret = _PyLong_AsByteArray((PyLongObject *)x,
                                bytes, sizeof(val),
                                is_little, !is_unsigned);
    if ((0)) goto raise_overflow;
#else
    PyObject *v;
    PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
    int bits, remaining_bits, is_negative = 0;
    int chunk_size = (sizeof(long) < 8) ? 30 : 62;
    if (likely(PyLong_CheckExact(x))) {
        v = __Pyx_NewRef(x);
    } else {
        v = PyNumber_Long(x);
        if (unlikely(!v)) return (long) -1;
        assert(PyLong_CheckExact(v));
    }
    {
        int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
        if (unlikely(result < 0)) {
            Py_DECREF(v);
            return (long) -1;
        }
        is_negative = result == 1;
    }
    if (is_unsigned && unlikely(is_negative)) {
        Py_DECREF(v);
        PyErr_SetString(PyExc_OverflowError,
            "can't convert negative value to long");
        return (long) -1;
    } else if (is_negative) {
        stepval = PyNumber_Invert(v);
        Py_DECREF(v);
        if (unlikely(!stepval))
            return (long) -1;
    } else {
        stepval = v;
    }
    v = NULL;
    val = (long) 0;
    mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
    shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
    for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
        PyObject *tmp, *digit;
        long idigit;
        digit = PyNumber_And(stepval, mask);
        if (unlikely(!digit)) goto done;
        idigit = PyLong_AsLong(digit);
        Py_DECREF(digit);
        if (unlikely(idigit < 0)) goto done;
        val |= ((long) idigit) << bits;
        tmp = PyNumber_Rshift(stepval, shift);
        if (unlikely(!tmp)) goto done;
        Py_DECREF(stepval); stepval = tmp;
    }
    Py_DECREF(shift); shift = NULL;
    Py_DECREF(mask); mask = NULL;
    {
        long idigit = PyLong_AsLong(stepval);
        if (unlikely(idigit < 0)) goto done;
        remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
        if (unlikely(idigit >= (1L << remaining_bits)))
            goto raise_overflow;
        val |= ((long) idigit) << bits;
    }
    if (!is_unsigned) {
        if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
            goto raise_overflow;
        if (is_negative)
            val = ~val;
    }
    ret = 0;
done:
    Py_XDECREF(shift);
    Py_XDECREF(mask);
    Py_XDECREF(stepval);
#endif
    if (unlikely(ret))
        return (long) -1;
    return val;
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_long();
}
static CYTHON_INLINE long __Pyx_PyLong___Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        #if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else
        #endif
        {
            return __Pyx_PyULong___Pyx_PyLong_As_long(x);
        }
    } else {
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else
        #endif
        {
            return __Pyx_PySLong___Pyx_PyLong_As_long(x);
        }
    }
#if CYTHON_USE_PYLONG_INTERNALS
raise_neg_overflow:
    return __Pyx_raise_neg_overflow___Pyx_PyLong_As_long();
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_long();
#endif
}
static long __Pyx_NonPyLong___Pyx_PyLong_As_long(PyObject *x) {
    long val;
    PyObject *tmp = __Pyx_PyNumber_Long(x);
    if (!tmp) return (long) -1;
    val = __Pyx_PyLong_As_long(tmp);
    Py_DECREF(tmp);
    return val;
}
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) {
    if (likely(PyLong_Check(x))) {
        return __Pyx_PyLong___Pyx_PyLong_As_long(x);
    } else {
        return __Pyx_NonPyLong___Pyx_PyLong_As_long(x);
    }
}

/* CIntFromPy */
static int __Pyx_LargePyLong___Pyx_PyLong_As_int(PyObject *x);
static int __Pyx_raise_neg_overflow___Pyx_PyLong_As_int(void) {
    const char* type_name = "int";
    PyErr_Format(PyExc_OverflowError,
        "can't convert negative value to %.200s", type_name);
    return (int) -1;
}
static int __Pyx_raise_overflow___Pyx_PyLong_As_int(void) {
    const char* type_name = "int";
    PyErr_Format(PyExc_OverflowError,
        "value too large to convert to %.200s", type_name);
    return (int) -1;
}
static CYTHON_INLINE int __Pyx_PyULong___Pyx_PyLong_As_int(PyObject *x) {
    const int is_unsigned = 1;
#if CYTHON_USE_PYLONG_INTERNALS
    {
        const digit* digits = __Pyx_PyLong_Digits(x);
        const Py_ssize_t size = __Pyx_PyLong_DigitCount(x);
        if (size == 2 && (8 * sizeof(int) > 1 * PyLong_SHIFT)) {
            if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
                return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
            }
        } else
        if (size == 3 && (8 * sizeof(int) > 2 * PyLong_SHIFT)) {
            if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
                return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
            }
        } else
        if (size == 4 && (8 * sizeof(int) > 3 * PyLong_SHIFT)) {
            if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
                return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
            }
        } else
        {}
    }
#elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
    if (unlikely(Py_SIZE(x) < 0)) {
        goto raise_neg_overflow;
    }
#else
    {
        int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
        if (unlikely(result < 0))
            return (int) -1;
        if (unlikely(result == 1))
            goto raise_neg_overflow;
    }
#endif
    if ((sizeof(int) <= sizeof(unsigned long))) {
        __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
    } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
        __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
    }
    return __Pyx_LargePyLong___Pyx_PyLong_As_int(x);
raise_neg_overflow:
    return __Pyx_raise_neg_overflow___Pyx_PyLong_As_int();
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_int();
}
static CYTHON_INLINE int __Pyx_PySLong___Pyx_PyLong_As_int(PyObject *x) {
    const int is_unsigned = 0;
#if CYTHON_USE_PYLONG_INTERNALS
    if (__Pyx_PyLong_IsNeg(x)) {
        const Py_ssize_t size = __Pyx_PyLong_DigitCount(x);
        const digit* digits = __Pyx_PyLong_Digits(x);
        if (size == 2 && (8 * sizeof(int) > 1 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                long ival = - (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                __PYX_VERIFY_RETURN_INT(int, long, ival)
            } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                return (int) (((int) -1) * (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
            }
        } else
        if (size == 3 && (8 * sizeof(int) > 2 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                long ival = - (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                __PYX_VERIFY_RETURN_INT(int, long, ival)
            } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                return (int) (((int) -1) * (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
            }
        } else
        if (size == 4 && (8 * sizeof(int) > 3 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 4 * PyLong_SHIFT)) {
                long ival = - (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                __PYX_VERIFY_RETURN_INT(int, long, ival)
            } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                return (int) (((int) -1) * (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
            }
        } else
        {}
    } else {
        const Py_ssize_t size = __Pyx_PyLong_DigitCount(x);
        const digit* digits = __Pyx_PyLong_Digits(x);
        if (size == 2 && (8 * sizeof(int) > 1 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
            }
        } else
        if (size == 3 && (8 * sizeof(int) > 2 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
            }
        } else
        if (size == 4 && (8 * sizeof(int) > 3 * PyLong_SHIFT)) {
            if ((8 * sizeof(long) > 4 * PyLong_SHIFT)) {
                __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
            } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
            }
        } else
        {}
    }
#endif
    #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    if ((sizeof(int) <= sizeof(int)) && (sizeof(int) < sizeof(long))) {
        __PYX_VERIFY_RETURN_INT_EXC(int, int, PyLong_AsInt(x))
    } else
    #endif
    if ((sizeof(int) <= sizeof(long))) {
        __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
    } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
        __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
    }
    return __Pyx_LargePyLong___Pyx_PyLong_As_int(x);
raise_neg_overflow:
    return __Pyx_raise_neg_overflow___Pyx_PyLong_As_int();
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_int();
}
static int __Pyx_LargePyLong___Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    int val;
    int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
        x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
    if (unlikely(bytes_copied == -1)) {
    } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
        goto raise_overflow;
    } else {
        ret = 0;
    }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
    int one = 1; int is_little = (int)*(unsigned char *)&one;
    unsigned char *bytes = (unsigned char *)&val;
    ret = _PyLong_AsByteArray((PyLongObject *)x,
                                bytes, sizeof(val),
                                is_little, !is_unsigned);
    if ((0)) goto raise_overflow;
#else
    PyObject *v;
    PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
    int bits, remaining_bits, is_negative = 0;
    int chunk_size = (sizeof(long) < 8) ? 30 : 62;
    if (likely(PyLong_CheckExact(x))) {
        v = __Pyx_NewRef(x);
    } else {
        v = PyNumber_Long(x);
        if (unlikely(!v)) return (int) -1;
        assert(PyLong_CheckExact(v));
    }
    {
        int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
        if (unlikely(result < 0)) {
            Py_DECREF(v);
            return (int) -1;
        }
        is_negative = result == 1;
    }
    if (is_unsigned && unlikely(is_negative)) {
        Py_DECREF(v);
        PyErr_SetString(PyExc_OverflowError,
            "can't convert negative value to int");
        return (int) -1;
    } else if (is_negative) {
        stepval = PyNumber_Invert(v);
        Py_DECREF(v);
        if (unlikely(!stepval))
            return (int) -1;
    } else {
        stepval = v;
    }
    v = NULL;
    val = (int) 0;
    mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
    shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
    for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
        PyObject *tmp, *digit;
        long idigit;
        digit = PyNumber_And(stepval, mask);
        if (unlikely(!digit)) goto done;
        idigit = PyLong_AsLong(digit);
        Py_DECREF(digit);
        if (unlikely(idigit < 0)) goto done;
        val |= ((int) idigit) << bits;
        tmp = PyNumber_Rshift(stepval, shift);
        if (unlikely(!tmp)) goto done;
        Py_DECREF(stepval); stepval = tmp;
    }
    Py_DECREF(shift); shift = NULL;
    Py_DECREF(mask); mask = NULL;
    {
        long idigit = PyLong_AsLong(stepval);
        if (unlikely(idigit < 0)) goto done;
        remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
        if (unlikely(idigit >= (1L << remaining_bits)))
            goto raise_overflow;
        val |= ((int) idigit) << bits;
    }
    if (!is_unsigned) {
        if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
            goto raise_overflow;
        if (is_negative)
            val = ~val;
    }
    ret = 0;
done:
    Py_XDECREF(shift);
    Py_XDECREF(mask);
    Py_XDECREF(stepval);
#endif
    if (unlikely(ret))
        return (int) -1;
    return val;
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_int();
}
static CYTHON_INLINE int __Pyx_PyLong___Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        #if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else
        #endif
        {
            return __Pyx_PyULong___Pyx_PyLong_As_int(x);
        }
    } else {
        #if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else
        #endif
        {
            return __Pyx_PySLong___Pyx_PyLong_As_int(x);
        }
    }
#if CYTHON_USE_PYLONG_INTERNALS
raise_neg_overflow:
    return __Pyx_raise_neg_overflow___Pyx_PyLong_As_int();
raise_overflow:
    return __Pyx_raise_overflow___Pyx_PyLong_As_int();
#endif
}
static int __Pyx_NonPyLong___Pyx_PyLong_As_int(PyObject *x) {
    int val;
    PyObject *tmp = __Pyx_PyNumber_Long(x);
    if (!tmp) return (int) -1;
    val = __Pyx_PyLong_As_int(tmp);
    Py_DECREF(tmp);
    return val;
}
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) {
    if (likely(PyLong_Check(x))) {
        return __Pyx_PyLong___Pyx_PyLong_As_int(x);
    } else {
        return __Pyx_NonPyLong___Pyx_PyLong_As_int(x);
    }
}

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* AddModuleRef */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX < 0x030F00a3
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      if ((PY_VERSION_HEX >= 0x030E0000) &&  Py_Version >= 0x030E0100) {
          return PyImport_AddModuleRef(name);
      }
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX < 0x030d0000
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* PxdImportShared (used by FunctionImport) */
#ifndef __PYX_HAVE_RT_ImportFromPxd_3_3_0
#define __PYX_HAVE_RT_ImportFromPxd_3_3_0
static int __Pyx_ImportFromPxd_3_3_0(PyObject *module, const char *name, void **p, const char *sig, const char *what, int optional) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    d = PyObject_GetAttrString(module, "__pyx_capi__");
    if (!d)
        goto bad;
#if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000)
    PyDict_GetItemStringRef(d, name, &cobj);
#else
    cobj = PyDict_GetItemString(d, name);
    Py_XINCREF(cobj);
#endif
    if (!cobj) {
        if (optional && !PyErr_Occurred()) {
            PyErr_Clear();
            *p = NULL;
            goto allowed_failure;
        } else {
            PyErr_Format(PyExc_ImportError,
                "%.200s does not export expected C %.8s %.200s",
                    PyModule_GetName(module), what, name);
            goto bad;
        }
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    *p = PyCapsule_GetPointer(cobj, sig);
    if (!(*p))
        goto bad;
    Py_DECREF(cobj);
allowed_failure:
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(d);
    Py_XDECREF(cobj);
    return -1;
}
#endif

/* FunctionImport */
#ifndef __PYX_HAVE_RT_ImportFunction_3_3_0
#define __PYX_HAVE_RT_ImportFunction_3_3_0
static int __Pyx_ImportFunction_3_3_0(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    if (*f) {
        return 0; // already imported under a different name
    }
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    int result = __Pyx_ImportFromPxd_3_3_0(module, funcname, &tmp.p, sig, "function", 0);
    if (result == 0) {
        *f = tmp.fp;
    }
    return result;
}
#endif

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                       PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                       PyObject *fv, PyObject *cell, PyObject* fn,
                                       PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (!result) {
            PyObject *exc_type, *exc_value, *exc_tb;
            PyErr_Fetch(&exc_type, &exc_value, &exc_tb);
            if (PyErr_WarnFormat(
                    PyExc_RuntimeWarning, 1,
                    "Code object creation failed in Cython module: %S\nTry recompiling with a more recent version of Cython.",
                    exc_value ? exc_value : exc_type) == 0) {
                result = Py_None;
                Py_INCREF(result);
            }
            Py_DECREF(exc_type);
            Py_XDECREF(exc_value);
            Py_XDECREF(exc_tb);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                         PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                         PyObject *fv, PyObject *cell, PyObject* fn,
                                         PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
CYTHON_UNUSED
static CYTHON_SMALL_CODE PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
#ifdef __Pyx_DecompressString_UNUSED
    CYTHON_UNUSED_VAR(s);
    CYTHON_UNUSED_VAR(length);
    CYTHON_UNUSED_VAR(algo);
    return NULL;
#else
    PyObject *module = NULL, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) goto bad;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
#endif
}

/* DecompressString_LZSS */
#ifndef __Pyx_DecompressString_LZSS_UNUSED
CYTHON_UNUSED
static CYTHON_SMALL_CODE size_t __pyx_lzss_decompress(const uint8_t* src, uint8_t* dst, size_t dst_len) {
    size_t pos = 0, out_pos = 0;
    while (1) {
        uint32_t flags = src[pos++] | 0xFF00;
        while (flags & 0x100) {
            if (flags & 1) {
                dst[out_pos++] = src[pos++];
            } else {
                uint32_t lo = src[pos++], hi = src[pos++];
                uint32_t end_offset_of_last_occurrence, match_length;
                if (!(lo & 0x80)) {
                    end_offset_of_last_occurrence = lo;
                    match_length = hi;
                } else if (!(hi & 0x80)) {
                    end_offset_of_last_occurrence = 0x80 + (((hi << 2) & 0x180) | (lo & 0x7F));
                    match_length = hi & 0x1F;
                } else {
                    end_offset_of_last_occurrence = 0x80 + ((hi & 0x7F) << 7 | (lo & 0x7F));
                    match_length = src[pos++];
                }
                match_length += 3;
                size_t ref_pos = out_pos - end_offset_of_last_occurrence - match_length;
                memcpy(dst + out_pos, dst + ref_pos, match_length);
                out_pos += match_length;
            }
            if (out_pos >= dst_len) return pos;
            flags >>= 1;
        }
    }
}
#endif
static CYTHON_SMALL_CODE PyObject *__Pyx_DecompressString_LZSS(const char *s, size_t compressed_length, size_t uncompressed_length) {
#ifdef __Pyx_DecompressString_LZSS_UNUSED
    CYTHON_UNUSED_VAR(s);
    CYTHON_UNUSED_VAR(compressed_length);
    CYTHON_UNUSED_VAR(uncompressed_length);
    return NULL;
#else
    PyObject *result;
    unsigned char *result_data;
    size_t src_length;
    result = PyBytes_FromStringAndSize(NULL, (Py_ssize_t) uncompressed_length);
    if (unlikely(!result)) return NULL;
    result_data = __Pyx_PyBytes_AsWritableUString(result);
    if (unlikely(!result_data)) goto bad;
    src_length = __pyx_lzss_decompress((const uint8_t*) s, result_data, uncompressed_length);
    if (unlikely(src_length != compressed_length)) goto decompression_failed;
    return result;
decompression_failed:
    PyErr_SetString(PyExc_RuntimeError, "LZSS string data decompression failed");
bad:
    Py_DECREF(result);
    return NULL;
#endif
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
}
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
    if (unlikely(!result_type_name)) goto bad;
    #endif
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            goto bad;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
bad:
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  else if (!PyErr_Occurred()) {
      PyErr_SetString(PyExc_TypeError,
                      "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyLong_AsSsize_t(PyObject* b) {
    #if CYTHON_USE_PYLONG_INTERNALS
    Py_ssize_t ival;
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(b);
    const int is_neg = __Pyx_PyLong_IsNeg(b);
    const digit* digits = __Pyx_PyLong_Digits(b);
    if (size == 0) return 0;
    #if SIZEOF_SIZE_T * 8 > 1 * PyLong_SHIFT
    if (size == 1) {
        ival = (Py_ssize_t) (((size_t)digits[0]));
    } else
    #endif
    #if SIZEOF_SIZE_T * 8 > 2 * PyLong_SHIFT
    if (size == 2) {
        ival = (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
    } else
    #endif
    #if SIZEOF_SIZE_T * 8 > 3 * PyLong_SHIFT
    if (size == 3) {
        ival = (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
    } else
    #endif
    #if SIZEOF_SIZE_T * 8 > 4 * PyLong_SHIFT
    if (size == 4) {
        ival = (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
    } else
    #endif
        return PyLong_AsSsize_t(b);
    return is_neg ? -ival : ival;
    #else
    return PyLong_AsSsize_t(b);
    #endif
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
    if (likely(PyLong_Check(b))) {
        return __Pyx_PyLong_AsSsize_t(b);
    } else {
        Py_ssize_t ival;
        PyObject *x = PyNumber_Index(b);
        if (unlikely(!x)) return -1;
        ival = __Pyx_PyLong_AsSsize_t(x);
        Py_DECREF(x);
        return ival;
    }
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
