<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <script src="https://use.fontawesome.com/dfa0b8a2ce.js"></script>
    <link
      href="https://fonts.googleapis.com/css?family=Inter:400,500,600,700|Inconsolata|Karla|Rubik&display=swap"
      rel="stylesheet"
    />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/plotly.js/1.54.7/plotly.min.js"></script>
    <script>
      window.dpLocal = true;
    </script>
    {% if standalone %}
      <style>
        {% include "local-report-base.css" %}
      </style>
      <script>
        {{ include_raw("local-report-base.js") }}
      </script>
    {% else %}
      <link href="{{ cdn_base }}/base.css" rel="stylesheet"/>
      <link href="{{ cdn_base }}/report-base.css" rel="stylesheet"/>
      <script src="{{ cdn_base }}/base.js"></script>
      <script src="{{ cdn_base }}/report-base.js"></script>
    {% endif %}
  </head>
  <body>
    <div id="report-root" class="w-full"></div>
    <script>
      const report = { document: `{{ report_doc|e }}` };
      const { React, ReactDOM, ReportComponent } = UMDModules;
      const ReportFactory = React.createElement.bind(null, ReportComponent);
      ReactDOM.render(
        ReportFactory({ report }),
        document.querySelector("#report-root")
      );
    </script>
  </body>
</html>
