{# TODO offload these to a common template file (shared with standard & idt report templates) #}

{% macro navlink(display, tab_id, style='') %}
<a href="#"
   class="tablink {{ style }}"
   onclick="openTab('{{ tab_id }}')"
   >{{ display }}</a>
{% endmacro %}

{% macro cdn_jslib(local_filename, cdn_url, libobj, integrity=None) %}
<script src="{{ cdn_url }}" crossorigin="anonymous"
        {% if integrity is not none %}
        integrity="{{ integrity }}"
        {% endif %}
        ></script>
<script>jsFa